cee4bd3
#!/bin/sh
cee4bd3
NAME="epic"
436810f
VERSION=0.6.24
436810f
TAG="testing_0_6_24"
cee4bd3
cee4bd3
echo "Exporting from CVS..."
cee4bd3
mkdir $NAME-$VERSION
cee4bd3
pushd $NAME-$VERSION >/dev/null
cee4bd3
for m in \
cee4bd3
		org.epic.feature.main \
cee4bd3
		org.epic.debug \
cee4bd3
		org.epic.doc \
cee4bd3
		org.epic.lib \
cee4bd3
		org.epic.perleditor \
cee4bd3
		org.epic.regexp \
cee4bd3
		org.epic.source; do
cee4bd3
	cvs -z3 -d:pserver:anonymous@e-p-i-c.cvs.sourceforge.net:/cvsroot/e-p-i-c export -r $TAG $m
cee4bd3
	if [ $? -eq 1 ]; then
cee4bd3
		sleep 10
cee4bd3
		cvs -z3 -d:pserver:anonymous@e-p-i-c.cvs.sourceforge.net:/cvsroot/e-p-i-c export -r $TAG $m
cee4bd3
		if [ $? -eq 1 ]; then 
cee4bd3
			echo "ERROR: There was a problem checking out module: $m"
cee4bd3
			exit 1
cee4bd3
		fi
cee4bd3
	fi 
cee4bd3
done
cee4bd3
popd >/dev/null
cee4bd3
cee4bd3
# jettison cvs gumph and empty files
cee4bd3
find $NAME-$VERSION -name .cvs* | xargs rm 
cee4bd3
rm $NAME-$VERSION/org.epic.source/src/.dummy.txt
cee4bd3
cee4bd3
# fix stray executable permissions
cee4bd3
find $NAME-$VERSION -name *.gif | xargs chmod -x
cee4bd3
find $NAME-$VERSION -name *.java | xargs chmod -x
cee4bd3
cee4bd3
echo "Creating tarball '$NAME-$VERSION.tar.gz'..."
cee4bd3
tar -czf $NAME-$VERSION.tar.gz $NAME-$VERSION