


cd ..
cd ..
DEVROOT=`pwd`; export DEVROOT

DIRDIST=$DEVROOT/demoall; export DIRDIST

echo Create distribution directory on $DIRDIST from $DEVROOT
#  ACCOUNTFLEX - make sure files are initialized
echo 
echo 
echo "!!! Be sure to initialize ACCOUNTFLEX database !!! (press any key to continue)"
echo "               $ sqlbuild"
echo "               $ fxsql demodata"
read answer

rm -r $DIRDIST 
mkdir $DIRDIST


cd $DEVROOT/fx/unx
./tarfxdev -Zdir $DIRDIST 

#cd $DEVROOT/fx/unx
#./tarfxdemo -Zdir $DIRDIST 

cd $DEVROOT/sqlflex/unx
./tarsqdev -Zdir $DIRDIST 

cd $DEVROOT/qryflex/unx
./tarqfdev -Zdir $DIRDIST 

if test -d $DEVROOT/docflex; then
   cd $DEVROOT/docflex
   ./tardoc -Zdir $DIRDIST 
fi

cd $DEVROOT/act/bin
./taractdev -Zdir $DIRDIST 

# last so any previous README is overwritten
cd $DEVROOT/fx/unx
cp insdemoall.readme $DIRDIST/README
cp profileall tarall setupall setupani.bat setupmv.bat setupmv2.bat $DIRDIST

rm $DIRDIST/VERSION
uname -a >> $DIRDIST/VERSION
gcc -v 1>> $DIRDIST/VERSION 2>> $DIRDIST/VERSION
rpm -qa | grep glibc 1>> $DIRST/VERSION
