#!/bin/sh

# Make the directory cleanish

VERSION=0.2.6

echo Removing dross...
rm -f maxmin studio_{tool,mixer} reset_dsp *~

echo generating documentation files...
sed -e "s/@version@/$VERSION/g" README.template > README
sed -e "s/@version@/$VERSION/g" studio.lsm.template > studio-$VERSION.lsm

mydir=$PWD
echo Creating backup of $mydir...
(cd .. ; tar czf SoundStudio-$VERSION.tgz ./${mydir#$PWD})

echo Done.  You may need to run $mydir/install again.
