Add tools

This commit is contained in:
2010-08-06 22:03:53 +02:00
parent 88c6b1198c
commit d9733bd21d
6 changed files with 29 additions and 5 deletions

3
tools/generate_locales.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
CPP_FILE_LIST=`find src -name '*.cpp' -print`
xgettext --from-code utf-8 -d kisscount -s --keyword=_ -p ./ressources/po -o kisscount.pot $CPP_FILE_LIST

4
tools/launch_kc.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
./kc

15
tools/package.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
DATE=`date +%d.%m.%Y`
DIR="build_$DATE"
FILE="$DIR.tar.bz2"
rm -f $FILE
rm -rf $DIR
make clean
make || (echo "Compilation failed" ; exit 1)
mkdir $DIR
cp -r kc lib/freechart/lib/* lib/wxsqlite3-1.9.9/lib/* init.sql ressources launch_kc.sh TODO CONTRIBUTORS COPYING README README.fr $DIR
tar -jcf $FILE $DIR
rm -rf $DIR
echo "Packaged !"