#!/bin/sh #item ####description ###on off ### TMP=/var/log/setup/tmp if [ ! -d $TMP ]; then mkdir -p $TMP fi cat /dev/null > $TMP/SeTnewtag dialog --backtitle "Slackware installer: package selection" --title "SELECTING PACKAGES FROM SERIES TCL (Tcl/Tk/TclX)" \ --checklist "Please select the packages you wish to install from this series. \ Use the UP/DOWN keys to scroll through the \ list, and the SPACE key to select the packages you wish to \ install. Recommended packages have already been selected for \ you, but you may unselect them if you wish. \ \ Press ENTER when you are done." \ 16 70 6 \ "expect" "A tool for automating interactive applications" "on" \ "hfsutils" "Tools for reading/writing Macintosh volumes" "on" \ "tcl" "The TCL script language" "on" \ "tclx" "Extended Tcl" "on" \ "tix" "Tix widget library for Tk" "on" \ "tk" "The TK toolkit for TCL" "on" \ 2> $TMP/SeTpkgs # If the user pressed cancel, or something bad happened then we # mark all packages as skipped and bail out. if [ $? = 1 -o $? = 255 ]; then # Not in Slackware, but a nice addition for ARMedslack whilst # we're processing the package selection: dialog \ --backtitle "Slackware installer: package selection" \ --infobox "Marking all packages as skipped" 3 35 rm -f $TMP/SeTpkgs # Empty, but not delete this file: > $TMP/SeTnewtag for PKG in \ expect hfsutils tcl tclx tix tk \ ; do echo "$PKG: SKP" >> $TMP/SeTnewtag done exit fi dialog \ --backtitle "Slackware installer: package selection" \ --infobox "Processing package selection" 3 33 cat /dev/null > $TMP/SeTnewtag for PACKAGE in \ expect hfsutils tcl tclx tix tk \ ; do if fgrep \"$PACKAGE\" $TMP/SeTpkgs 1> /dev/null 2> /dev/null ; then echo "$PACKAGE: ADD" >> $TMP/SeTnewtag else echo "$PACKAGE: SKP" >> $TMP/SeTnewtag fi done rm -f $TMP/SeTpkgs