home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SLAKTEST / Y1 / MAKETAG < prev    next >
Encoding:
Text File  |  1995-04-20  |  1.1 KB  |  31 lines

  1. #!/bin/sh
  2. #item   ####description                                      ###on off ###
  3. rm -f /tmp/SeTnewtag # empty the return file
  4. dialog --title "SELECTING PACKAGES FOR SERIES Y (GAMES)" \
  5.        --checklist "Please select the packages you wish to install \
  6. from series Y. Use the \
  7. UP/DOWN keys to scroll through the list, and the SPACE key to select \
  8. the packages you wish to install. \
  9. Press ENTER when you are \
  10. done." 16 70 6 \
  11. "bsdgames" "The BSD text games collection" "on" \
  12. "sastroid" "An asteroids clone that uses SVGAlib" "on" \
  13. "tetris" "Tetris for terminals" "on" \
  14. "doom" "DOOM v1.8 for Linux console and X" "on" \
  15. "doomwad" "Data file required for DOOM, part one" "on" \
  16. "doomwad2" "Data file required for DOOM, part two" "on" \
  17. 2> /tmp/SeTpkgs
  18. if [ $? = 1 -o $? = 255 ]; then
  19.  rm -f /tmp/SeTpkgs
  20.  exit
  21. fi
  22. cat /dev/null > /tmp/SeTnewtag
  23. for PACKAGE in bsdgames sastroid tetris doom doomwad doomwad2 ; do
  24.  if fgrep \"$PACKAGE\" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then
  25.   echo "$PACKAGE: ADD" >> /tmp/SeTnewtag
  26.  else
  27.   echo "$PACKAGE: SKP" >> /tmp/SeTnewtag
  28.  fi
  29. done
  30. rm -f /tmp/SeTpkgs
  31.