home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / ROOTDSKS.12 / UMSDOS12 / usr / lib / setup / SeTPKG < prev    next >
Encoding:
Text File  |  1995-02-27  |  2.1 KB  |  59 lines

  1. #!/bin/sh
  2. T_PX="`cat /tmp/SeTT_PX`"
  3. rm -f /tmp/SeTSERIES
  4. if [ "$T_PX" = "/" ]; then
  5.  BASE=off
  6. else
  7.  BASE=on
  8. fi
  9. dialog --title "SERIES SELECTION" --checklist \
  10. "\n\
  11. Use the spacebar to select the disk sets you wish to install.\n\
  12. You can use the UP/DOWN arrows to see all the possible choices.\n\
  13. Press the ENTER key when you are finished. If you need to \n\
  14. install a disk set that is not listed here, check the box for \n\
  15. custom additional disk sets.\n" 20 75 7 \
  16. "CUS" "Also prompt for CUSTOM disk sets" off \
  17. "A" "Base Linux system" $BASE \
  18. "AP" "Various Applications that do not need X" off \
  19. "D" "Program Development (C, C++, Lisp, Perl, etc.)" off \
  20. "E" "GNU Emacs" off \
  21. "F" "FAQ lists, HOWTO documentation" off \
  22. "I" "Info files - docs readable with info or Emacs" off \
  23. "IV" "InterViews Development + Doc and Idraw Apps for X" off \
  24. "N" "Networking (TCP/IP, UUCP, Mail, News)" off \
  25. "OOP" "Object Oriented Programming (GNU Smalltalk)" off \
  26. "Q" "Extra Linux kernels with UMSDOS/non-SCSI CD drivers" off \
  27. "T" "TeX" off \
  28. "TCL" "Tcl/Tk/TclX, Tcl language, and Tk toolkit for X" off \
  29. "X" "Base XFree-86 X Window System" off \
  30. "XAP" "X Applications" off \
  31. "XD" "XFree-86 X11 Server Development System" off \
  32. "XV" "XView (OpenLook Window Manager, apps)" off \
  33. "Y" "Games (that do not require X)" off 2> /tmp/series
  34. if [ $? = 1 -o $? = 255 ]; then
  35.  rm -f /tmp/series
  36.  exit
  37. fi
  38. INSTSETS="`cat /tmp/series | tr -d " "`"
  39. INSTSETS="`echo $INSTSETS | tr "\042" "#" `"
  40. INSTSETS="`echo $INSTSETS | tr "," "#" `"
  41. rm -f /tmp/series
  42. TEST="`echo $INSTSETS | cut -b1-5`"
  43. if [ "$TEST" = "#CUS#" ]; then
  44.  INSTSETS="`echo $INSTSETS | cut -b5-`"
  45.  dialog --title "CUSTOM DISK SETS" --inputbox "\n\
  46. Please enter the names (such as X, Y, Z) of\n\
  47. the custom disk sets that you would also\n\
  48. like to install. Please do not re-enter the\n\
  49. names of sets you have previously selected.\n" 13 55 2> /tmp/custom
  50.  if [ $? = 1 -o $? = 255 ]; then
  51.   rm -f /tmp/custom
  52.   exit
  53.  fi
  54.  CUSTSETS="`cat /tmp/custom | tr " " "#" | tr "," "#"`"
  55.  rm -f /tmp/custom
  56.  INSTSETS="`echo $INSTSETS``echo $CUSTSETS`"
  57. fi
  58. echo "$INSTSETS" > /tmp/SeTSERIES
  59.