limit_enquire 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. #!/bin/sh
  2. while :
  3. do
  4. echo "The libraries will end up in the machine-independent part of the
  5. ACK binary tree. You may already have them from a previous ACK installation
  6. on a different machine, in particular if you have an NFS file system.
  7. Therefore, it may not be neccessary to install them again. As this part
  8. of the ACK installation takes the most time, you are given the opportunity
  9. to disable installation of the machine-independent part"
  10. echo $E_FLAG \
  11. "Do you want to install the machine-independent part? (y/n) [$DO_MACHINE_INDEP] $E_SFX"
  12. . $FDIR/get_answer
  13. case $ANS in
  14. '') ANS="$DO_MACHINE_INDEP" ;;
  15. esac
  16. case X$ANS in
  17. Xj*|Xy*|X) DO_MACHINE_INDEP=y
  18. echo "machine-independent part will be installed"
  19. echo
  20. break
  21. ;;
  22. Xn*) DO_MACHINE_INDEP=n
  23. echo "machine-independent part will not be installed"
  24. echo
  25. break
  26. ;;
  27. *) echo "I do not understand your answer ($ANS). Try again."
  28. ;;
  29. esac
  30. done
  31. OLD_DIS_LANG="$DISABLE_LANG"
  32. DISABLE_LANG=
  33. case X$OLD_DIS_LANG in
  34. X) ;;
  35. *) set $OLD_DIS_LANG
  36. ;;
  37. esac
  38. for i in Modula-2 Pascal Occam Basic ANSI-C C Fortran
  39. do
  40. DEF=y
  41. if [ $# != 0 -a X$i = X$1 ]
  42. then
  43. DEF=n
  44. shift
  45. fi
  46. while :
  47. do
  48. echo $E_FLAG "Do you want to install $i? (y/n) [$DEF] $E_SFX"
  49. . $FDIR/get_answer
  50. case $ANS in
  51. '') ANS="$DEF";;
  52. esac
  53. case X$ANS in
  54. Xj*|Xy*)
  55. echo "$i will be installed"
  56. echo
  57. break
  58. ;;
  59. Xn*) DISABLE_LANG=$DISABLE_LANG" $i"
  60. echo "$i will not be installed"
  61. echo
  62. break
  63. ;;
  64. *) echo "I do not understand your answer ($ANS). Try again."
  65. ;;
  66. esac
  67. done
  68. done
  69. OLD_DIS_SUP="$DISABLE_SUP"
  70. DISABLE_SUP=
  71. set $MACH_LIST
  72. while test $# != 0
  73. do
  74. DEF=y
  75. for i in $OLD_DIS_SUP
  76. do
  77. if [ X$i = X$1 ]
  78. then
  79. DEF=n
  80. break
  81. fi
  82. done
  83. while :
  84. do
  85. case $1 in
  86. i86) echo "not installing i86 will disable installation of xenix3 and minix."
  87. ;;
  88. m68k2) echo "not installing m68k2 will disable installation of pmds, minixST,
  89. m68k4, pmds4, sun2, and mantra."
  90. ;;
  91. m68k4) echo "not installing m68k4 will disable installation of pmds4, sun2, and mantra."
  92. ;;
  93. m68020) echo "not installing m68020 will disable installation of sun3."
  94. ;;
  95. esac
  96. echo $E_FLAG "Do you want to install the $1 support? (y/n) [$DEF] $E_SFX"
  97. . $FDIR/get_answer
  98. case $ANS in
  99. '') ANS="$DEF";;
  100. esac
  101. case X$ANS in
  102. Xj*|Xy*)
  103. echo "The $1 support will be installed"
  104. echo
  105. case $1 in
  106. vax4) case $SYSNAME in
  107. vax_bsd4_1a) SYSVAX=libbsd4_1a
  108. ;;
  109. vax_bsd4_2) SYSVAX=libbsd4_2
  110. ;;
  111. vax_sysV_2) SYSVAX=libsysV_2
  112. ;;
  113. *) if [ $DO_MACHINE_INDEP = y ]
  114. then
  115. . $FDIR/get_sysvax
  116. fi
  117. ;;
  118. esac
  119. ;;
  120. sparc) shift
  121. ;;
  122. esac
  123. break
  124. ;;
  125. Xn*) DISABLE_SUP=$DISABLE_SUP" $1"
  126. echo "The $1 support will not be installed"
  127. echo
  128. case $1 in
  129. i86)
  130. shift
  131. DISABLE_SUP=$DISABLE_SUP" $1"
  132. shift
  133. DISABLE_SUP=$DISABLE_SUP" $1"
  134. ;;
  135. m68k2)
  136. shift
  137. DISABLE_SUP=$DISABLE_SUP" $1"
  138. shift
  139. DISABLE_SUP=$DISABLE_SUP" $1"
  140. shift
  141. DISABLE_SUP=$DISABLE_SUP" $1"
  142. shift
  143. DISABLE_SUP=$DISABLE_SUP" $1"
  144. shift
  145. DISABLE_SUP=$DISABLE_SUP" $1"
  146. shift
  147. DISABLE_SUP=$DISABLE_SUP" $1"
  148. ;;
  149. m68k4)
  150. shift
  151. DISABLE_SUP=$DISABLE_SUP" $1"
  152. shift
  153. DISABLE_SUP=$DISABLE_SUP" $1"
  154. shift
  155. DISABLE_SUP=$DISABLE_SUP" $1"
  156. ;;
  157. sparc)
  158. shift
  159. DISABLE_SUP=$DISABLE_SUP" $1"
  160. ;;
  161. m68020)
  162. shift
  163. DISABLE_SUP=$DISABLE_SUP" $1"
  164. ;;
  165. esac
  166. break
  167. ;;
  168. *) echo "I do not understand your answer ($ANS). Try again."
  169. ;;
  170. esac
  171. done
  172. shift
  173. done
  174. if [ $TARGET_HOME = $UTIL_HOME ]
  175. then
  176. case $ACM in
  177. sun3|m68020|i386|vax*)
  178. while :
  179. do
  180. echo $E_FLAG "Do you want to install the fast compilers? (y/n) [$DO_FAST] $E_SFX"
  181. . $FDIR/get_answer
  182. case $ANS in
  183. '') ANS="$DO_FAST" ;;
  184. esac
  185. case X$ANS in
  186. Xj*|Xy*)
  187. DO_FAST=y
  188. echo "The fast compilers will be installed"
  189. break
  190. ;;
  191. Xn*)
  192. DO_FAST=n
  193. echo "The fast compilers will not be installed"
  194. break
  195. ;;
  196. *) echo "I do not understand your answer ($ANS). Try again."
  197. ;;
  198. esac
  199. done
  200. ;;
  201. *)
  202. DO_FAST=n
  203. ;;
  204. esac
  205. else
  206. DO_FAST=n
  207. fi