echo "Position to DOC directory" cd .. . fxsettar if test "$1" = ""; then echo "INSERT Diskette and Press Return"; read answer; fi rm docflex.lst 2> /dev/null rm docflex/docflex_ 2> /dev/null rm docflex/docflex_.gz 2> /dev/null rm docflex/docflex_.Z 2> /dev/null if test "$1" = "-dir" then # maxdepth = 1 so acrobat reader not included rm -f docflex/docflex_ 2> /dev/null find docflex -maxdepth 1 -type f -print >> docflex.lst if test "$TARLIST2" = "-CAT"; then tar $TARLIST docflex/docflex_ `cat docflex.lst` else tar $TARLIST docflex/docflex_ $TARLIST2 docflex.lst fi rm -f docflex/docflex_.gz 2> /dev/null gzip docflex/docflex_ cd docflex cp docsetup docflex_.gz "$2" rm docflex_.gz exit fi if test "$1" = "-Zdir" then # maxdepth = 1 so acrobat reader not included rm -f docflex/docflex_ 2> /dev/null find docflex -maxdepth 1 -type f -print >> docflex.lst if test "$TARLIST2" = "-CAT"; then tar $TARLIST docflex/docflex_ `cat docflex.lst` else tar $TARLIST docflex/docflex_ $TARLIST2 docflex.lst fi rm -f docflex/docflex_.Z 2> /dev/null # DO NOT compress !!! mv docflex/docflex_ docflex/docflex_.Z cd docflex cp docsetup docflex_.Z "$2" rm docflex_.Z exit fi