home *** CD-ROM | disk | FTP | other *** search
/ Freelog 2 / Freelog002.iso / slakware / tcl1 / maketag.ez < prev    next >
Text File  |  1999-02-08  |  1KB  |  40 lines

  1. #!/bin/sh
  2. #item   ####description                                      ###on off ###
  3. TMP=/var/log/setup/tmp
  4. if [ ! -d $TMP ]; then
  5.   mkdir -p $TMP
  6. fi
  7. rm -rf $TMP/SeTnewtag
  8. rm -rf $TMP/SeTpkgs
  9. cat /dev/null > $TMP/SeTnewtag
  10. dialog --title "SELECTING PACKAGES FROM SERIES TCL (Tcl/Tk/TclX)" \
  11.        --checklist "Please select the packages you wish to install \
  12. from series TCL. Use the \
  13. UP/DOWN keys to scroll through the list, and the SPACE key to select \
  14. the packages you wish to install. Recommended packages have \
  15. already been selected for you, but you may unselect them if you wish. \
  16. Press ENTER when you are \
  17. done." 15 70 4 \
  18. "tcl" "The TCL script language" "on" \
  19. "tk" "The TK toolkit for TCL" "on" \
  20. "tclx" "Extended Tcl" "on" \
  21. "hfsutils" "Tools for reading/writing Macintosh volumes" "off" \
  22. 2> $TMP/SeTpkgs
  23. if [ $? = 1 -o $? = 255 ]; then
  24.  rm -rf $TMP/SeTpkgs
  25.  > $TMP/SeTnewtag
  26.  for pkg in hfsutils tcl tk tclx tkdesk ; do
  27.   echo "$pkg: SKP" >> $TMP/SeTnewtag
  28.  done
  29.  exit
  30. fi
  31. cat /dev/null > $TMP/SeTnewtag
  32. for PACKAGE in hfsutils tcl tk tclx tkdesk ; do
  33.  if fgrep \"$PACKAGE\" $TMP/SeTpkgs 1> /dev/null 2> /dev/null ; then
  34.   echo "$PACKAGE: ADD" >> $TMP/SeTnewtag
  35.  else
  36.   echo "$PACKAGE: SKP" >> $TMP/SeTnewtag
  37.  fi
  38. done
  39. rm -f $TMP/SeTpkgs
  40.