From 585ed0ce18a46158dd4a75f84803a2b6c54be9d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Thu, 6 Jan 2011 18:33:26 +0100 Subject: [PATCH] Update package.sh to take care of spaces in version number --- tools/package.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/package.sh b/tools/package.sh index fba1944..f4ec3bc 100755 --- a/tools/package.sh +++ b/tools/package.sh @@ -6,16 +6,16 @@ VERSION=`cat src/controller/KissCount.h | grep APP_VERSION | cut -d\" -f2` DIR="KissCount_build_${VERSION}_${DATE}_${ARCH}" FILE="$DIR.tar.bz2" -rm -f $FILE -rm -rf $DIR +rm -f "$FILE" +rm -rf "$DIR" if [ "$1" == "clean" ] ; then make clean fi make || (echo "Compilation failed" ; exit 1) -mkdir -p $DIR/lib -cp -r lib/freechart/lib/*.so* lib/wxsqlite3-1.9.9/lib/*.so* $DIR/lib -cp -r kc init.sql ressources tools/launch_kc.sh TODO CONTRIBUTORS COPYING README README.fr www $DIR -find $DIR -type f -executable -exec strip \{\} \; -tar -jcf $FILE $DIR -rm -rf $DIR +mkdir -p "$DIR"/lib +cp -r lib/freechart/lib/*.so* lib/wxsqlite3-1.9.9/lib/*.so* "$DIR"/lib +cp -r kc init.sql ressources tools/launch_kc.sh TODO CONTRIBUTORS COPYING README README.fr www "$DIR" +find "$DIR" -type f -executable -exec strip \{\} \; +tar -jcf "$FILE" "$DIR" +rm -rf "$DIR" echo "Packaged !" \ No newline at end of file