From d407177d3486cd5e5288327c977ec4805e1ea878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Lemaire?= Date: Wed, 23 Oct 2013 22:00:18 +0200 Subject: [PATCH] Added 'make package' command to package linux build --- .gitignore | 2 ++ Makefile | 32 ++++++++++++++++---------------- dist/paysages3d.sh | 7 +++++++ 3 files changed, 25 insertions(+), 16 deletions(-) create mode 100644 dist/paysages3d.sh diff --git a/.gitignore b/.gitignore index e44ccc3..25585bb 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,5 @@ ui_*.h /debian/*.substvars /debian/paysages3d /*.trace +/paysages3d-linux/ +/paysages3d-linux.tar.bz2 diff --git a/Makefile b/Makefile index 5ec204a..0bd6671 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/dist/paysages3d.sh b/dist/paysages3d.sh new file mode 100644 index 0000000..5d0bf57 --- /dev/null +++ b/dist/paysages3d.sh @@ -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 - +