home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SLAKWARE / F1 / MAKETAG < prev    next >
Encoding:
Text File  |  1995-04-20  |  750 b   |  25 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 F (FAQS/DOCS)" \
  5.        --checklist "Please select the packages you wish to install \
  6. from series F. \
  7. Press ENTER when you are \
  8. done." 10 70 2 \
  9. "manyfaqs" "Lots of Linux documentation" "on" \
  10. "howto" "HOWTOs from the Linux Doc Project" "on" \
  11. 2> /tmp/SeTpkgs
  12. if [ $? = 1 -o $? = 255 ]; then
  13.  rm -f /tmp/SeTpkgs
  14.  exit
  15. fi
  16. cat /dev/null > /tmp/SeTnewtag
  17. for PACKAGE in manyfaqs howto ; do
  18.  if fgrep \"$PACKAGE\" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then
  19.   echo "$PACKAGE: ADD" >> /tmp/SeTnewtag
  20.  else
  21.   echo "$PACKAGE: SKP" >> /tmp/SeTnewtag
  22.  fi
  23. done
  24. rm -f /tmp/SeTpkgs
  25.