#!/bin/bash

#This creates a source tarball.

if test -a VERSION ; then
	VERSION="$(cat VERSION)"

	#For some reason the underscores have to be escaped.
	TGZS=gnurobbo\_$VERSION\_zaurus_source.tar.gz
	cd ..
	tar -czvf $TGZS gnurobbo-$VERSION-zaurus --exclude=*.gz --exclude=*.ipk --exclude=*.o
	mv $TGZS gnurobbo-$VERSION-zaurus/
	echo "All done."
else
	echo "ERROR: File \"VERSION\" not found. This is a text file with the version number inside it."
fi



