#!/bin/bash

#This copies the necessary files into the website folder.

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

	#For some reason the underscores have to be escaped.
	cp gnurobbo\_$VERSION\_zaurus.tar.gz website
	cp gnurobbo\_$VERSION\_zaurus_source.tar.gz website
	cp gnurobbo\_$VERSION\_arm.ipk website/gnurobbo\_$VERSION\_arm.ipk.tar.gz
	cp ChangeLog-zaurus website/changelog-zaurus.txt 
	cp COMPILING website/compiling.txt 
	cp TODO-zaurus website/todo-zaurus.txt 
	echo "All done."
else
	echo "ERROR: File \"VERSION\" not found. This is a text file with the version number inside it."
fi




