#!/bin/sh cat /dev/null > /tmp/SeTnewtag dialog --title "Select pkgs from perl_append(Modules for Perl)" --checklist "Select packages to install from perl_append series. Use cursor up/down to select the package, mark(*) by space key. Push Enter to start install." 24 72 15 "perl_JSON" "perl JSON modules" "on" \ "perl_Parse_Yapp" "Perl Module for LALR parser" "on" \ "perl_SGMLSpm" "Perl::SGMLSpm" "on" \ "perl_URI" "Perl::URI" "on" \ "perl_XML_NamespaceSupport" "Perl::XML_NamespaceSupport" "on" \ "perl_XML_SAX" "Perl::XML_SAX" "on" \ "perl_XML_SAX_Base" "Perl::XML_SAX_BASE" "on" \ 2> /tmp/SeTpkgs if [ $? = 1 -o $? = 255 ]; then rm -f /tmp/SeTpkgs > /tmp/SeTnewtag for pkg in perl_JSON perl_Parse_Yapp perl_SGMLSpm perl_URI perl_XML_NamespaceSupport perl_XML_SAX perl_XML_SAX_Base ; do echo "$pkg: SKP" >> /tmp/SeTnewtag done exit fi cat /dev/null > /tmp/SeTnewtag for PACKAGE in perl_JSON perl_Parse_Yapp perl_SGMLSpm perl_URI perl_XML_NamespaceSupport perl_XML_SAX perl_XML_SAX_Base ; 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