#!/bin/sh
#item   ####description                                      ###on off ###
rm -f /tmp/SeTnewtag # empty the return file
dialog --title "SELECTING PACKAGES FROM SERIES E (GNU EMACS)" \
      --checklist "Please select the packages you wish to install \
from series E. 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. \
Please note that there are two Emacs binaries available, if you want the \
one that does not require the X11 libraries, check the 'emac_nox' box. \
Press ENTER when you are \
done." 20 70 6 \
"emacsbin" "The base binaries for the GNU Emacs" "on" \
"emacmisc" "Miscellaneous files for Emacs 19.31" "on" \
"elispc1" "Compiled lisp files for GNU Emacs 19.31" "on" \
"elispc2" "Compiled lisp files for GNU Emacs 19.31" "on" \
"elispc3" "Compiled lisp files for GNU Emacs 19.31" "on" \
"elisp1" "Part 1 of the Lisp source files for Emacs 19.31" "off" \
"elisp2" "Part 2 of the Lisp source files for Emacs 19.31" "off" \
"elisp3" "Part 3 of the Lisp source files for Emacs 19.31" "off" \
"elisp4" "Part 4 of the Lisp source files for Emacs 19.31" "off" \
"emacinfo" "Info (documentation) files for Emacs" "off" \
"emac_nox" "REMOVES X11 SUPPORT (&need for libX11) FROM EMACS" "off" \
2> /tmp/SeTpkgs
if [ $? = 1 -o $? = 255 ]; then
rm -f /tmp/SeTpkgs
exit
fi
cat /dev/null > /tmp/SeTnewtag
for PACKAGE in elisp1 elisp2 elisp3 elisp4 elispc1 elispc2 elispc3 \
emac_nox emacinfo emacmisc emacsbin ; 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