Added 'make package' command to package linux build

This commit is contained in:
Michaël Lemaire 2013-10-23 22:00:18 +02:00
parent c19e4d4e2b
commit d407177d34
3 changed files with 25 additions and 16 deletions

2
.gitignore vendored
View file

@ -18,3 +18,5 @@ ui_*.h
/debian/*.substvars
/debian/paysages3d
/*.trace
/paysages3d-linux/
/paysages3d-linux.tar.bz2

View file

@ -49,21 +49,21 @@ profile_cli:debug
LD_LIBRARY_PATH=build/debug/rendering perf record -g fp ./build/debug/paysages-cli
perf report -g
install:release
mkdir -p ${DESTDIR}/usr/bin
mkdir -p ${DESTDIR}/usr/lib
mkdir -p ${DESTDIR}/usr/share/paysages3d
cp build/release/editing/paysages-gui ${DESTDIR}/usr/bin/paysages3d
cp build/release/exploring/libpaysages_exploring.so ${DESTDIR}/usr/lib/
cp build/release/rendering/libpaysages_rendering.so ${DESTDIR}/usr/lib/
cp data/.paysages_data ${DESTDIR}/usr/share/paysages3d/
cp -r data/i18n ${DESTDIR}/usr/share/paysages3d/
cp -r data/images ${DESTDIR}/usr/share/paysages3d/
cp cache/*.cache ${DESTDIR}/usr/share/paysages3d/
deb:
apt-get install pbuilder build-essential check qt4-dev-tools
DEBFULLNAME="Michael Lemaire" DEBEMAIL=paysages@thunderk.net dch -i -p -u low -D stable
debuild -b -us -uc
package:release
rm -rf paysages3d-linux
rm -f paysages3d-linux.tar.gz
mkdir paysages3d-linux
mkdir paysages3d-linux/lib
mkdir paysages3d-linux/cache
cp $(BUILDPATH)/system/libpaysages_system.so* paysages3d-linux/lib/
cp $(BUILDPATH)/rendering/libpaysages_rendering.so* paysages3d-linux/lib/
cp $(BUILDPATH)/exploring/libpaysages_exploring.so* paysages3d-linux/lib/
cp $(BUILDPATH)/editing/paysages-gui paysages3d-linux/lib/
chmod +x paysages3d-linux/lib/paysages-gui
cp -r data paysages3d-linux/
cp -r cache/*.cache paysages3d-linux/cache/
cp dist/paysages3d.sh paysages3d-linux/
chmod +x paysages3d-linux/paysages3d.sh
tar -cjvvf paysages3d-linux.tar.bz2 paysages3d-linux/
.PHONY:all clean release build

7
dist/paysages3d.sh vendored Normal file
View file

@ -0,0 +1,7 @@
#!/bin/sh
SCRIPT_PATH=$(dirname $0)
cd ${SCRIPT_PATH}
LD_LIBRARY_PATH=${SCRIPT_PATH}/lib ${SCRIPT_PATH}/lib/paysages-gui
cd -