home *** CD-ROM | disk | FTP | other *** search
/ Serving the Web / ServingTheWeb1995.disc1of1.iso / linux / slakware / i1 / maketag < prev    next >
Text File  |  1995-03-23  |  844b  |  27 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 I (INFO PAGES)" \
  5.        --checklist "Please select the packages you wish to install \
  6. from series I. 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." 12 70 2 \
  11. "info1" "/usr/info files part 1" "on" \
  12. "info2" "/usr/info files part 2" "on" \
  13. 2> /tmp/SeTpkgs
  14. if [ $? = 1 -o $? = 255 ]; then
  15.  rm -f /tmp/SeTpkgs
  16.  exit
  17. fi
  18. cat /dev/null > /tmp/SeTnewtag
  19. for PACKAGE in info1 info2 ; do
  20.  if fgrep \"$PACKAGE\" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then
  21.   echo "$PACKAGE: ADD" >> /tmp/SeTnewtag
  22.  else
  23.   echo "$PACKAGE: SKP" >> /tmp/SeTnewtag
  24.  fi
  25. done
  26. rm -f /tmp/SeTpkgs
  27.