home *** CD-ROM | disk | FTP | other *** search
/ Freelog 2 / Freelog002.iso / slakware / ap1 / maketag.ez < prev    next >
Text File  |  1999-02-08  |  3KB  |  77 lines

  1. #!/bin/sh
  2. TMP=/var/log/setup/tmp
  3. if [ ! -d $TMP ]; then
  4.   mkdir -p $TMP
  5. fi
  6. add() {
  7.   for package in $* ; do
  8.     echo "$package: ADD" >> $TMP/SeTnewtag
  9.   done
  10. }
  11. skip() {
  12.   for package in $* ; do
  13.     echo "$package: SKP" >> $TMP/SeTnewtag
  14.   done
  15. }
  16. #item   ####description                                      ###on off ###
  17. cat /dev/null > $TMP/SeTnewtag
  18. dialog --title "SELECTING SOFTWARE FROM SERIES AP (APPLICATIONS)" \
  19.        --checklist "Please select the system components you wish to install \
  20. from series AP. Use the \
  21. UP/DOWN keys to scroll through the list, and the SPACE key to select \
  22. the items you wish to install. Recommended items have \
  23. already been selected for you, but you may unselect them if you wish. \
  24. Press ENTER when you are \
  25. done." 22 70 11 \
  26. "ispell" "The International version of ispell" "off" \
  27. "jove" "Jonathan's Own Version of Emacs text editor" "off" \
  28. "manpages" "man pages (online docs -- requires groff)" "on" \
  29. "groff" "GNU troff document formatting system" "on" \
  30. "diff" "GNU diffutils" "on" \
  31. "sudo" "Allow special users limited root access" "off" \
  32. "ghostscr" "GNU Ghostscript version 4.03" "on" \
  33. "jed" "JED programmer's editor" "on" \
  34. "joe" "joe text editor, version 2.8" "on" \
  35. "jpeg6" "JPEG image compression utilities" "on" \
  36. "bc" "GNU bc - arbitrary precision math language" "off" \
  37. "cdutils" "CD-R mastering/burning tools" "off" \
  38. "workbone" "a text-based audio CD player" "on" \
  39. "mc" "The Midnight Commander file manager" "on" \
  40. "md" "MD (RAID) utilities" "on" \
  41. "mt_st" "mt ported from BSD - controls tape drive" "on" \
  42. "quota" "User disk quota utilities" "off" \
  43. "sc" "The 'sc' spreadsheet" "off" \
  44. "seejpeg" "An SVGAlib image viewer" "on" \
  45. "sox" "Sound utilities" "on" \
  46. "texinfo" "GNU texinfo documentation system" "on" \
  47. "vim" "Improved vi clone" "on" \
  48. "ash" "A small /bin/sh type shell - 62K" "off" \
  49. "zsh" "Zsh - a custom *nix shell" "on" \
  50. 2> $TMP/SeTpkgs
  51. if [ $? = 1 -o $? = 255 ]; then
  52.  rm -f $TMP/SeTpkgs
  53.  > $TMP/SeTnewtag
  54.  for pkg in ash bc diff ghostscr gsfonts joe mt_st quota sudo groff ispell \
  55.   jpeg6 workbone jove jed manpages mc sc texinfo vim zsh sox seejpeg \
  56.   md cdutils ; do
  57.   echo "$pkg: SKP" >> $TMP/SeTnewtag
  58.  done
  59.  exit
  60. fi
  61. cat /dev/null > $TMP/SeTnewtag
  62. if fgrep \"ghostscr\" $TMP/SeTpkgs 1> /dev/null 2> /dev/null ; then
  63.   add ghostscr gsfonts
  64. else
  65.   skip ghostscr gsfonts
  66. fi
  67. for PACKAGE in ispell jove manpages bc \
  68. groff sc workbone joe md seejpeg cdutils \
  69. quota mc jpeg6 ash jed mt_st texinfo vim sudo diff zsh sox ; do
  70.  if fgrep \"$PACKAGE\" $TMP/SeTpkgs 1> /dev/null 2> /dev/null ; then
  71.   echo "$PACKAGE: ADD" >> $TMP/SeTnewtag
  72.  else
  73.   echo "$PACKAGE: SKP" >> $TMP/SeTnewtag
  74.  fi
  75. done
  76. rm -f $TMP/SeTpkgs
  77.