#!/bin/sh
#item   ####description                                      ###on off ###
cat /dev/null > /tmp/SeTnewtag 
dialog --title "D(Development) series" \
       --checklist "select packages from D series" 20 72 14 \
"autoconf" "GNU autoconf utility" "on" \
"automake" "GNU automake utility" "on" \
"binutils" "GNU binary utitiles 2.8.1.0.1" "on" \
"bison" "GNU bison parser generator version 1.25." "on" \
"flex" "flex - fast lexical analyzer" "on" \
"gcc295" "GNU C compiler for ELF binary" "on" \
"gdb" "GNU debugger(v. 4.16)" "on" \
"gdbm" "GNU DBM(v. 1.8)" "on" \
"gmake" "GNU make utilities" "on" \
"perl561" "Perl 5.6.1" "on" \
"libc" "libraries for C compiler" "on" \
"libcinfo" "info files for C libraries" "on" \
"libtool" "GNU libtool" "on" \
"linuxinc" "include files for Linux 2.4.19 kernel" "off" \
"m4" "macro language m4" "on" \
"man2" "manual for Linux system" "on" \
"man3" "manuals for C libraries" "on" \
"pmake" "BSD 4.4 make. " "on" \
"cvs" "Concurrent Versioning System v1.08j" "off" \
2> /tmp/SeTpkgs
if [ $? = 1 -o $? = 255 ]; then 
 rm -f /tmp/SeTpkgs 
 > /tmp/SeTnewtag 
for pkg in autoconf binutils bison flex gcc295 gdb gdbm gmake perl561 libc libcinfo linuxinc m4 man2 man3 pmake cvs automake linux98i libtool ; do
  echo "$pkg: SKP" >> /tmp/SeTnewtag 
 done 
 exit 
fi 
cat /dev/null > /tmp/SeTnewtag
for PACKAGE in autoconf binutils bison flex gcc295 gdb gdbm gmake perl561 libc libcinfo linuxinc m4 man2 man3 pmake cvs automake linux98i libtool ; 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
