KissCount/tools/package.sh
Grégory Soutadé b820a3632a * Create a grid directory for grid's components
* Fix a bug inside ShowPanels
* Add fast comboboxes editing inside grids
2010-09-04 11:54:49 +02:00

19 lines
475 B
Bash
Executable File

#!/bin/bash
DATE=`date +%d.%m.%Y`
DIR="KissCount_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 lib/freechart/lib/* lib/wxsqlite3-1.9.9/lib/* $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 !"