home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / SLAKWARE / TCL1 / MAKETAG < prev    next >
Text File  |  1997-04-19  |  1KB  |  34 lines

  1. #!/bin/sh
  2. #item   ####description                                      ###on off ###
  3. cat /dev/null > /tmp/SeTnewtag
  4. dialog --title "SELECTING PACKAGES FROM SERIES TCL (Tcl/Tk/TclX)" \
  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." 15 70 4 \
  12. "tcl" "The TCL script language" "on" \
  13. "tk" "The TK toolkit for TCL" "on" \
  14. "tclx" "Extended Tcl" "on" \
  15. "tkdesk" "TkDesk X File Manager" "on" \
  16. 2> /tmp/SeTpkgs
  17. if [ $? = 1 -o $? = 255 ]; then
  18.  rm -f /tmp/SeTpkgs
  19.  > /tmp/SeTnewtag
  20.  for pkg in tcl tk tclx tkdesk ; do
  21.   echo "$pkg: SKP" >> /tmp/SeTnewtag
  22.  done
  23.  exit
  24. fi
  25. cat /dev/null > /tmp/SeTnewtag
  26. for PACKAGE in tcl tk tclx tkdesk ; do
  27.  if fgrep \"$PACKAGE\" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then
  28.   echo "$PACKAGE: ADD" >> /tmp/SeTnewtag
  29.  else
  30.   echo "$PACKAGE: SKP" >> /tmp/SeTnewtag
  31.  fi
  32. done
  33. rm -f /tmp/SeTpkgs
  34.