#!/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 T (teTeX)" \ --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." \ 14 70 4 \ "tetex" "teTeX base package" "on" \ "tetex-doc" "teTeX documentation" "on" \ "transfig" "transfig (used by xfig)" "on" \ "xfig" "drawing tool for LaTeX" "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 Slackware ARM 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 \ tetex tetex-doc transfig xfig \ ; 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 \ tetex tetex-doc transfig xfig \ ; do if grep "\(^\| \)$PACKAGE\( \|$\)" $TMP/SeTpkgs > /dev/null 2>&1 ; then echo "$PACKAGE: ADD" >> $TMP/SeTnewtag else echo "$PACKAGE: SKP" >> $TMP/SeTnewtag fi done rm -f $TMP/SeTpkgs