#!/bin/sh

if `test $# -ne 1`; then
    echo "Use: prepare version"
    exit
fi

echo "=== preparing FLU ==="
rm -f doc/*
doxygen dox_cfg.ini
cp CHANGES CHANGES_$1
cd ../
mv FLU FLU_$1
tar cf FLU_$1.tar FLU_$1
rm -f FLU_$1.tar.gz
gzip FLU_$1.tar
mv FLU_$1 FLU

echo "=== transfering files ==="
scp -r FLU/CHANGES_$1 FLU/index.html FLU/images FLU/doc FLU_$1.tar.gz jbryan@loginhost.osc.edu:/nfs/public_html/jbryan/FLU/
rm -f FLU_$1.tar.gz

cd FLU
rm -f CHANGES_$1

