home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / SLAKWARE / Y1 / MAKETAG.EZ < prev    next >
Text File  |  1997-04-19  |  1KB  |  44 lines

  1. #!/bin/sh
  2. #item   ####description                                      ###on off ###
  3. add() {
  4.   for package in $* ; do
  5.     echo "$package: ADD" >> /tmp/SeTnewtag
  6.   done
  7. }
  8. skip() {
  9.   for package in $* ; do
  10.     echo "$package: SKP" >> /tmp/SeTnewtag
  11.   done
  12. }
  13. cat /dev/null > /tmp/SeTnewtag
  14. dialog --title "SELECTING PACKAGES FROM SERIES Y (GAMES)" \
  15.        --checklist "Please select the packages you wish to install \
  16. from series Y. Use the \
  17. UP/DOWN keys to scroll through the list, and the SPACE key to select \
  18. the packages you wish to install. \
  19. Press ENTER when you are \
  20. done." 15 70 5 \
  21. "bsdgames" "The BSD text games collection" "on" \
  22. "sastroid" "An asteroids clone that uses SVGAlib" "on" \
  23. "koules" "An SVGAlib arcade game" "on" \
  24. "tetris" "Tetris for terminals" "on" \
  25. "lizards" "Lizards video game" "on" \
  26. 2> /tmp/SeTpkgs
  27. if [ $? = 1 -o $? = 255 ]; then
  28.  rm -f /tmp/SeTpkgs
  29.  > /tmp/SeTnewtag
  30.  for pkg in bsdgames koules sastroid tetris lizards ; do
  31.   echo "$pkg: SKP" >> /tmp/SeTnewtag
  32.  done
  33.  exit
  34. fi
  35. cat /dev/null > /tmp/SeTnewtag
  36. for PACKAGE in bsdgames sastroid koules tetris lizards ; do
  37.  if fgrep \"$PACKAGE\" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then
  38.   echo "$PACKAGE: ADD" >> /tmp/SeTnewtag
  39.  else
  40.   echo "$PACKAGE: SKP" >> /tmp/SeTnewtag
  41.  fi
  42. done
  43. rm -f /tmp/SeTpkgs
  44.