#!/bin/sh

ALLPKGS="apache astrolog autoconf bash bison cvs diffutils expect fileutils findutils flex gawk gcc gdbm groff indent less libg++ lynx m4 make mkpkg mtools ncftp patch Perl python rcs readline rxvt sh-utils squid tar tcl tclX tcsh tk unzip xanim xlincity xtartan zip zsh"
DEVSYS="autoconf bison cvs flex gawk gcc gdbm indent libg++ readline m4 make mkpkg patch rcs"
NETTOOLS="apache lynx ncftp"
SCRIPTLANG="expect tcl tclX tk Perl python"
TCL8="Tcl8 Tk8"
SHELLS="bash zsh tcsh"
UTILITIES="sh-utils diffutils fileutils findutils groff less mtools tar zip unzip"
GAMES="astrolog rxvt xlincity xtartan xanim"

# exit 77 if process is interrupted, so set will not be installed
trap 'EXITCODE=77; exit' 2
trap 'exit $EXITCODE' 0

clear
echo -n "

	Welcome to SkunkWare 97 for UnixWare

	1. Install All Packages
	2. Install GNU Development System and Related Tools
	3. Install Scripting Languages (TCL, Perl, Python)
	4. Install Tcl Release 8 Beta
	5. Install Advanced Shells
	6. Install Shell Utilities
	7. Install Network Tools
	8. Install Games and Graphics

	Select one or 'q' to quit: "

while read response; do
    case $response in
	1) PKGLIST=$ALLPKGS ; break ;;
	2) PKGLIST=$DEVSYS ; break ;;
	3) PKGLIST=$SCRIPTLANG ; break ;;
	4) PKGLIST=$TCL8 ; break ;;
	5) PKGLIST=$SHELLS ; break ;;
	6) PKGLIST=$UTILITIES ; break ;;
	7) PKGLIST=$NETTOOLS ; break ;;
	8) PKGLIST=$GAMES ; break ;;
	[Qq]*) exit 77 ;;
	*) echo -n "	Select a number from 1 to 8 or 'q' to quit: "
   esac
done

echo "Installing..."
