#!/bin/bash
# This scripts backup the FLim Program to another directory

# first remove all the backup files *.*~
rm -v *.*~
rm -v *~

# make a jar file distribution
jar cmf mainClass FLim.jar *.class

# Now make a tar archieve
cd ..
tar zcvf FLim_Current.tar.gz FLim

# Now move the tar file to the backup directory
echo ""
echo "Moving the backup file to the Backup directory"
cp FLim_Current.tar.gz FLim.tar.gz
mv -v FLim_Current.tar.gz Backups
