diff --git a/stepmania/Utils/GetProductVer.sh b/stepmania/Utils/GetProductVer.sh index 83adf19785..e1c20e6210 100755 --- a/stepmania/Utils/GetProductVer.sh +++ b/stepmania/Utils/GetProductVer.sh @@ -11,8 +11,8 @@ if ! test -e $1; then exit 1 fi -PRODUCT=`cat $1 | grep -w '^#define PRODUCT_NAME' | sed -e 's/.*"\(.*\)"/\1/'` -VER=`cat $1 | grep -w '^#define PRODUCT_VER' | sed -e 's/.*"\(.*\)"/\1/'` +PRODUCT=`cat $1 | grep -w '^.define PRODUCT_NAME' | sed -e 's/.*"\(.*\)"/\1/'` +VER=`cat $1 | grep -w '^.define PRODUCT_VER' | sed -e 's/.*"\(.*\)"/\1/'` # "3.9 alpha 1" -> "3.9 alpha1" VER=`echo "$VER" | sed -e 's/alpha /alpha/'` diff --git a/stepmania/Utils/make-src-archive.sh b/stepmania/Utils/make-src-archive.sh index b92f003d4b..e57656ba3f 100755 --- a/stepmania/Utils/make-src-archive.sh +++ b/stepmania/Utils/make-src-archive.sh @@ -17,9 +17,9 @@ fi echo Copying... mkdir $PRODUCTVER -cp -a autoconf $PRODUCTVER/ -cp -a Utils $PRODUCTVER/ -cp -a src $PRODUCTVER/ +cp -dpR autoconf $PRODUCTVER/ +cp -dpR Utils $PRODUCTVER/ +cp -dpR src $PRODUCTVER/ cp Docs/Copying.txt NEWS README-FIRST.html Makefile.am aclocal.m4 \ configure Makefile.in configure.ac $PRODUCTVER @@ -54,11 +54,11 @@ rm -rf SDLx-0.02.rar cd .. -find -type d -name 'CVS' | xargs rm -rf -find -type f -name '*.lib' | xargs rm -rf -find -type f -name '*.exe' | xargs rm -rf -find -type f -name '*.a' | xargs rm -rf -find -type f -name '*.o' | xargs rm -rf +find . -type d -name 'CVS' | xargs rm -rf +find . -type f -name '*.lib' | xargs rm -rf +find . -type f -name '*.exe' | xargs rm -rf +find . -type f -name '*.a' | xargs rm -rf +find . -type f -name '*.o' | xargs rm -rf cd .. rm -rf Utils/Font\ generation/