#!/bin/tcsh

set ver=0.7.2

#
set syncdir=`pwd`
cd ..
set curbase=`pwd`
cd ..
set rootdir=`pwd`

set mathlib=${curbase}/data/palm/MathLib.prc

# source
rm ${rootdir}/SmallBASIC-${ver}.tar.gz
if ( { test -L ${rootdir}/SmallBASIC-${ver} } ) then
else
	ln -s ${rootdir}/${ver} ${rootdir}/SmallBASIC-${ver}
endif
tar chf - SmallBASIC-${ver} --exclude-from=${syncdir}/exclude.lst | gzip > ${rootdir}/SmallBASIC-${ver}.tar.gz

# PalmOS - binary
#rm ${rootdir}/SmallBASIC-${ver}-PalmOS.zip
#cp ${curbase}/bin/sbpad.prc ${mathlib} ${syncdir}/Changes ${syncdir}/doc/LICENSE ${curbase}/tmp/rel

#cd ${curbase}/tmp/rel
#mv sbpad.prc SBASIC-${ver}.PRC
#zip ${rootdir}/SmallBASIC-${ver}-PalmOS.zip *
#cd ${rootdir}

# Linux binary - FB

# Linux binary - SVGA

# Linux binary - SDL

cd ${syncdir}

