VER_MAJOR=1 VER_MINOR=2 VER_MICRO=3 # VERSION=$VER_MAJOR"."$VER_MINOR"."$VER_MICRO TAG="ATARI800_"$VER_MAJOR"_"$VER_MINOR"_"$VER_MICRO FOLDER="atari800-"$VERSION FNAME=$FOLDER".tar.gz" # echo "download from CVS? (y/N)" read key if [ "x"$key = "xy" ]; then cvs -d:pserver:anonymous@cvs.atari800.sf.net:/cvsroot/atari800 login cvs -z9 -d:pserver:anonymous@cvs.atari800.sf.net:/cvsroot/atari800 export -r $TAG atari800 fi # grep ATARI_TITLE atari800/src/atari.h | grep $VERSION >/dev/null if [ $? -ne 0 ]; then echo "increase version in src/atari.h" exit 1 fi grep "[Vv]ersion "$VERSION atari800/README.1ST >/dev/null if [ $? -ne 0 ]; then echo "increase version in README.1ST" exit 1 fi grep "[Vv]ersion "$VERSION atari800/DOC/README >/dev/null if [ $? -ne 0 ]; then echo "increase version in DOC/README (2x)" exit 1 fi grep "%define ver" atari800/atari800.spec | grep $VERSION >/dev/null if [ $? -ne 0 ]; then echo "increase version in atari800.spec" exit 1 fi # cd atari800/src ./autogen.sh # remove leftovers from autogen process rm autogen.sh acconfig.h config.cache config.log configure.in # remove old stuff rm configure.c config.in cd ../.. mv atari800 $FOLDER tar czvf $FNAME $FOLDER