Update package.sh to take care of spaces in version number
This commit is contained in:
parent
ed52d91a79
commit
585ed0ce18
|
@ -6,16 +6,16 @@ VERSION=`cat src/controller/KissCount.h | grep APP_VERSION | cut -d\" -f2`
|
||||||
DIR="KissCount_build_${VERSION}_${DATE}_${ARCH}"
|
DIR="KissCount_build_${VERSION}_${DATE}_${ARCH}"
|
||||||
FILE="$DIR.tar.bz2"
|
FILE="$DIR.tar.bz2"
|
||||||
|
|
||||||
rm -f $FILE
|
rm -f "$FILE"
|
||||||
rm -rf $DIR
|
rm -rf "$DIR"
|
||||||
if [ "$1" == "clean" ] ; then
|
if [ "$1" == "clean" ] ; then
|
||||||
make clean
|
make clean
|
||||||
fi
|
fi
|
||||||
make || (echo "Compilation failed" ; exit 1)
|
make || (echo "Compilation failed" ; exit 1)
|
||||||
mkdir -p $DIR/lib
|
mkdir -p "$DIR"/lib
|
||||||
cp -r lib/freechart/lib/*.so* lib/wxsqlite3-1.9.9/lib/*.so* $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
|
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 \{\} \;
|
find "$DIR" -type f -executable -exec strip \{\} \;
|
||||||
tar -jcf $FILE $DIR
|
tar -jcf "$FILE" "$DIR"
|
||||||
rm -rf $DIR
|
rm -rf "$DIR"
|
||||||
echo "Packaged !"
|
echo "Packaged !"
|
Loading…
Reference in New Issue
Block a user