#!/bin/sh add() { for package in $* ; do echo "$package: ADD" >> /tmp/SeTnewtag done } skip() { for package in $* ; do echo "$package: SKP" >> /tmp/SeTnewtag done } #item ####description ###on off ### rm -f /tmp/SeTnewtag # empty the return file dialog --title "SELECTING SOFTWARE FROM SERIES E (GNU EMACS)" \ --checklist "Please select the software you wish to install \ from series E. Use the \ UP/DOWN keys to scroll through the list, and the SPACE key to select \ the items you wish to install. The base Emacs system has \ already been selected for you, but you may unselect it if you wish. \ (The optional Emacs Lisp source files use 10 megabytes of drive space) \ Press ENTER when you are \ done." 15 70 3 \ "emacs" "GNU Emacs 19.31 editor/environment" "on" \ "source" "Lisp source files for Emacs 19.31" "off" \ "xsupport" "Emacs support for the X window system" "on" \ 2> /tmp/SeTpkgs if [ $? = 1 -o $? = 255 ]; then rm -f /tmp/SeTpkgs exit fi cat /dev/null > /tmp/SeTnewtag if fgrep \"emacs\" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then add emacsbin emacmisc elispc1 elispc2 elispc3 emacinfo else skip emacsbin emacmisc elispc1 elispc2 elispc3 emacinfo fi if fgrep \"source\" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then add elisp1 elisp2 elisp3 elisp4 else skip elisp1 elisp2 elisp3 elisp4 fi if fgrep \"xsupport\" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then skip emac_nox else add emac_nox fi rm -f /tmp/SeTpkgs