diff options
author | Anselmo Lacerda S. de Melo <anselmo.melo@openbossa.org> | 2010-05-29 00:38:21 -0300 |
---|---|---|
committer | Anselmo Lacerda S. de Melo <anselmo.melo@openbossa.org> | 2010-05-30 11:03:03 -0300 |
commit | 5980ae1499725de52401aefd3d53690ce99d4a8b (patch) | |
tree | fc70ceb39ce18ae9d6f777edcd46eee7aa7ea285 | |
parent | e47099a910b291209c2e25c3c2a225a103ec8963 (diff) |
buildpkg.sh: A script to simplify maemo packaging
The script does the steps needed to procude the files
needed by the Maemo buildbot.
Some of the steps in this script are needed while the contents
of shared/ directory are not distributed as an independent package.
Signed-off-by: Anselmo Lacerda S. de Melo <anselmo.melo@openbossa.org>
-rwxr-xr-x | buildpkg.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/buildpkg.sh b/buildpkg.sh new file mode 100755 index 0000000..facb5f3 --- /dev/null +++ b/buildpkg.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +# A script to generate the source tar.gz to be +# uploaded to Maemo build bot. +# It is important to note the copy of the shared directory +# to the demo directory. We have to do it in order to +# provide the whole source needed, so the build bot +# can generate the .deb packages. + +# This small hack is necessary until the contents +# of shared/ aren't distributed as another package. + +if [ $# -eq 0 ]; then + echo "Usage: buildpkg DEMO" + exit 1 +fi + +DEMO_DIR=$1 + +cp -r shared $DEMO_DIR +cd $DEMO_DIR +sed -i 's/\.\.\/shared/shared/g' shared/shared.pri $DEMO_DIR.pro +if [ -e shared2.pri ]; then + sed -i 's/\.\.\/shared/shared/g' shared2.pri +fi +mad dpkg-buildpackage -rfakeroot +rm -fr build/ debian/qtmobiledemo-$DEMO_DIR/ shared/ + |