diff options
Diffstat (limited to 'buildpkg.sh')
-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/ + |