diff options
Diffstat (limited to 'slackware64/y/maketag.ez')
-rw-r--r-- | slackware64/y/maketag.ez | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/slackware64/y/maketag.ez b/slackware64/y/maketag.ez new file mode 100644 index 00000000..b35b445d --- /dev/null +++ b/slackware64/y/maketag.ez @@ -0,0 +1,46 @@ +#!/bin/sh +#item ####description ###on off ### +TMP=/var/log/setup/tmp +if [ ! -d $TMP ]; then + mkdir -p $TMP +fi +add() { + for package in $* ; do + echo "$package: ADD" >> $TMP/SeTnewtag + done +} +skip() { + for package in $* ; do + echo "$package: SKP" >> $TMP/SeTnewtag + done +} +cat /dev/null > $TMP/SeTnewtag +dialog --title "SELECTING PACKAGES FROM SERIES Y (GAMES)" \ + --checklist "Please confirm the packages you wish to install \ +from series Y. Use the UP/DOWN keys to scroll through the list, and \ +the SPACE key to deselect any items you don't want to install. \ +Press ENTER when you are done." \ +11 70 1 \ +"bsd-games" "The BSD text games collection" "on" \ +2> $TMP/SeTpkgs +if [ $? = 1 -o $? = 255 ]; then + rm -f $TMP/SeTpkgs + > $TMP/SeTnewtag + for pkg in \ +bsd-games \ + ; do + echo "$pkg: SKP" >> $TMP/SeTnewtag + done + exit +fi +cat /dev/null > $TMP/SeTnewtag +for PACKAGE in \ +bsd-games \ + ; 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 |