From 01ec5db85aa00ebce9f1941d4dbe02a66cec0860 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 20 Mar 2006 06:41:58 +0000 Subject: [PATCH] Do not rely on gnu coreutils and find. --- stepmania/Utils/GetProductVer.sh | 4 ++-- stepmania/Utils/make-src-archive.sh | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) 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/