echo "Position to INFOFLEX DIRECTORY (fx/unx)" 

. ./fxsettar

cd ..
cd ..


echo
echo
if test "$1" = ""; then 
     echo "INSERT Diskette 1 and Press Return"; 
     read answer; 
     fi
rm tar.lst
strip fx/bin/flex
strip fx/bin/flexm
strip fx/bin/fxsql
strip fx/bin/fxsql.esql
strip fx/bin/fxmore
strip fx/bin/fxedit
strip fx/bin/prntflex
strip fx/bin/termflex
strip fx/bin/fxpp
strip fx/bin/fxpdb
strip fx/bin/fxpscr
strip fx/bin/fxplink
strip fx/bin/fxpc
strip fx/demo/bin/demoflex
strip fx/demo/bin/cwmenu
find fx/bin -name "flex"     -print >> tar.lst   
find fx/bin -name "flexm"     -print >> tar.lst   
find fx/bin -name "fxsql"    -print >> tar.lst  
find fx/bin -name "fxmore"   -print >> tar.lst   
find fx/bin -name "fxedit"   -print >> tar.lst   
find fx/bin -name "termflex" -print >> tar.lst
find fx/bin -name "prntflex" -print >> tar.lst
tar $TARLIST  fx/fxtar $TARLIST2 tar.lst

rm tar.lst
find fx/bin -name "dcheck"   -print >> tar.lst
find fx/bin -name "fxp*"     -print >> tar.lst   
find fx/lib -name "libfx.a"  -print >> tar.lst   
find fx/lib -name "libisam.a" -print >> tar.lst    
find fx/lib -name "*.o"      -print >> tar.lst   
find fx/src/lib   -name "flex.o" -print >> tar.lst   
tar $TARLIST fx/fxtar2 $TARLIST2 tar.lst 

rm tar.lst
find fx/include   -name "*.h" -print >> tar.lst
find fx/src/misc  -type f -print >> tar.lst
find fx/src/term  -type f -print >> tar.lst
find fx/dev       -type f -print >> tar.lst
find fx/unx       -type f -print >> tar.lst
find fx/demo/bin  -type f -print >> tar.lst
find fx/demo/demo.dbs  -type f -print >> tar.lst
find fx/demo/help -type f -print >> tar.lst
find fx/bin -name "fxsql.esql"    -print >> tar.lst  
tar $TARLIST fx/fxtar3 $TARLIST2 tar.lst 

cd fx
cp unx/fxsetup .

rm fxtar.Z
compress fxtar
rm fxtar2.Z
compress fxtar2
rm fxtar3.Z
compress fxtar3

if test "$1" = "-n"; then exit ; fi
if test "$1" = "-dir"
   then
       cp fxsetup fxtar.Z fxtar2.Z fxtar3.Z "$2"
       exit
   fi

tar cvf $TARDRIVE fxsetup fxtar.Z

echo "Insert Next Diskette and then press enter key"
read answer
tar cvf $TARDRIVE fxtar2.Z

echo "Insert Next Diskette and then press enter key"
read answer
tar cvf $TARDRIVE fxtar3.Z
