home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 8 / CDACTUAL8.iso / slakware / y1 / maketag < prev    next >
Encoding:
Text File  |  1996-07-11  |  1.1 KB  |  39 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. rm -f /tmp/SeTnewtag # empty the return file
  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." 14 70 4 \
  21. "bsdgames" "The BSD text games collection" "on" \
  22. "sastroid" "An asteroids clone that uses SVGAlib" "on" \
  23. "tetris" "Tetris for terminals" "on" \
  24. "lizards" "Lizards video game" "on" \
  25. 2> /tmp/SeTpkgs
  26. if [ $? = 1 -o $? = 255 ]; then
  27.  rm -f /tmp/SeTpkgs
  28.  exit
  29. fi
  30. cat /dev/null > /tmp/SeTnewtag
  31. for PACKAGE in bsdgames sastroid tetris lizards ; do
  32.  if fgrep \"$PACKAGE\" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then
  33.   echo "$PACKAGE: ADD" >> /tmp/SeTnewtag
  34.  else
  35.   echo "$PACKAGE: SKP" >> /tmp/SeTnewtag
  36.  fi
  37. done
  38. rm -f /tmp/SeTpkgs
  39.