KissCount/tools/package.sh
Grégory Soutadé 75dfe39a03 Percents into statistics have now minimum two digits
Package libraries into lib instead of root (package.sh)
2010-08-20 21:33:59 +02:00

18 lines
408 B
Bash
Executable File

#!/bin/bash
DATE=`date +%d.%m.%Y`
DIR="build_$DATE"
FILE="$DIR.tar.bz2"
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 kc lib/freechart/lib/* lib/wxsqlite3-1.9.9/lib/* $DIR/lib
cp -r kc init.sql ressources launch_kc.sh TODO CONTRIBUTORS COPYING README README.fr $DIR
tar -jcf $FILE $DIR
rm -rf $DIR
echo "Packaged !"