#!/bin/bash

#This creates a binary tarball.

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

	#For some reason the underscores have to be escaped.
	TGZ=gnurobbo\_$VERSION\_zaurus.tar.gz
	chmod 755 gnurobbo
	chmod 644 ciphers-sl5x00.bmp icons.bmp levels.dat textsmall.bmp
	cp gnurobbo ciphers-sl5x00.bmp icons.bmp levels.dat textsmall.bmp gnurobbo-$VERSION-zaurus/
	tar -czvf $TGZ 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


