#!/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 PACKAGES FROM SERIES XAP (X APPLICATIONS)" \ --checklist "Please select the packages you wish to install \ from series XAP. 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." 21 70 10 \ "arena" "A graphical browser for the World Wide Web" "off" \ "fvwm95" "A window manager to make X resemble Win95" "on" \ "gs_x11" "Adds X11 driver to Ghostscript" "on" \ "libgr" "Shared libraries with GIF, TIFF, JPEG support" "on" \ "seyon" "A complete telecommunications package" "on" \ "gnuplot" "Gnuplot function plotting utility" "off" \ "xv" "XV GIF/TIFF/JPEG/PostScript Image Viewer" "on" \ "gchess" "GNU chess and xboard" "off" \ "xfm" "xfm, an X windows filemanager" "off" \ "xfileman" "another X filemanager" "off" \ "ghstview" "Ghostview 1.5" "on" \ "x3270" "x3270 3.0.1.3 - IBM host access tool" "off" \ "xgames" "A collection of X windows games" "off" \ "xfract" "Fractint for X" "off" \ "xpaint" "A color painting/image editing program" "off" \ "xspread" "An X windows spreadsheet" "off" \ "xxgdb" "xxgdb-1.12" "off" \ 2> /tmp/SeTpkgs if [ $? = 1 -o $? = 255 ]; then rm -f /tmp/SeTpkgs exit fi cat /dev/null > /tmp/SeTnewtag for PACKAGE in gchess xfm ghstview x3270 xgames xspread xxgdb \ arena gnuplot gs_x11 libgr seyon xv \ fvwm95 xfileman xfract xpaint ; 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 # OK, we have one dependancy here... if xv or xpaint are getting installed, # lets also force installation of the required shared libraries. if fgrep \"xv\" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then add libgr fi if fgrep \"xpaint\" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then add libgr fi rm -f /tmp/SeTpkgs