home *** CD-ROM | disk | FTP | other *** search
/ Serving the Web / ServingTheWeb1995.disc1of1.iso / linux / slakware / tcl1 / maketag < prev    next >
Text File  |  1995-03-23  |  1KB  |  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 TCL (Tcl/Tk,etc.)" \
  5.        --checklist "Please select the packages you wish to install \
  6. from series TCL. Use the \
  7. UP/DOWN keys to scroll through the list, and the SPACE key to select \
  8. the packages you wish to install. Recommended packages have \
  9. already been selected for you, but you may unselect them if you wish. \
  10. Press ENTER when you are \
  11. done." 16 70 5 \
  12. "tcl" "The TCL script language" "on" \
  13. "tk" "The TK toolkit for TCL" "on" \
  14. "blt" "The BLT library extension to Tk" "off" \
  15. "itcl" "[incr Tcl] OOP Tcl" "off" \
  16. "tclx" "TclX - Extended Tcl" "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 blt itcl tclx tcl tk ; 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.