#!/bin/sh
#item   ####description                                      ###on off ###
cat /dev/null > /tmp/SeTnewtag 
dialog --title "xv(XView) series" \
       --checklist "select packages from xv series" 20 72 14 \
"sspkg" "SlingShot extensions 2.1" "off" \
"workman" "WorkMan-1.2.2a" "off" \
"xv32_a" "static libraries for xview" "off" \
"xv32_so" "xview3.2p1-X11R6.LinuxELF.2 library" "off" \
"xv32exmp" "sample codes for XView" "off" \
"xvinc32" "include files for xview3.2p1" "off" \
"xvmenus" "menu and help files for OpenLook WM" "off" \
"xvol32" "xview3.2p1-X11R6.LinuxELF.2 binaries" "off" \
2> /tmp/SeTpkgs
if [ $? = 1 -o $? = 255 ]; then 
 rm -f /tmp/SeTpkgs 
 > /tmp/SeTnewtag 
for pkg in sspkg workman xv32_a xv32_so xv32exmp xvinc32 xvmenus xvol32 ; do
  echo "$pkg: SKP" >> /tmp/SeTnewtag 
 done 
 exit 
fi 
cat /dev/null > /tmp/SeTnewtag
for PACKAGE in sspkg workman xv32_a xv32_so xv32exmp xvinc32 xvmenus xvol32 ; do
  if grep \"$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
