#!/bin/sh
#item   ####description                                      ###on off ###
cat /dev/null > /tmp/SeTnewtag 
dialog --title "tcl(tcl/tk) series" \
       --checklist "select packages from tcl series" 20 72 14 \
"expect" "auto answer program expect 5.28" "on" \
"tcl805j" "Tcl 8.05 with Japanese extension" "on" \
"tclx804" "Extended Tcl (Tclx804) 8.0.4" "on" \
"tk805j" "Tk 8.0.5 with Japanese extension" "on" \
"tkdesk" "Tkdesk" "on" \
2> /tmp/SeTpkgs
if [ $? = 1 -o $? = 255 ]; then 
 rm -f /tmp/SeTpkgs 
 > /tmp/SeTnewtag 
for pkg in expect tcl805j tclx804 tk805j tkdesk ; do
  echo "$pkg: SKP" >> /tmp/SeTnewtag 
 done 
 exit 
fi 
cat /dev/null > /tmp/SeTnewtag
for PACKAGE in expect tcl805j tclx804 tk805j tkdesk ; 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
