From ffb444d470899db660088a6a8e79b8491f4c1401 Mon Sep 17 00:00:00 2001 From: Kevin Risden Date: Sun, 16 May 2010 00:20:55 -0400 Subject: [PATCH] Added ubuntu build scripts --- aptrepo.sh | 3 +++ update_build.sh | 57 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100755 aptrepo.sh create mode 100755 update_build.sh diff --git a/aptrepo.sh b/aptrepo.sh new file mode 100755 index 0000000..2bfd609 --- /dev/null +++ b/aptrepo.sh @@ -0,0 +1,3 @@ +cd /aptrepo/ +dpkg-scanpackages -m binary /dev/null | gzip -9c > binary/Packages.gz +dpkg-scansources source /dev/null | gzip -9c > source/Sources.gz diff --git a/update_build.sh b/update_build.sh new file mode 100755 index 0000000..a0ea1e6 --- /dev/null +++ b/update_build.sh @@ -0,0 +1,57 @@ +#Grab command line arguments +OLDVERSION=$1 +VERSION=$2 + +#Local +SRCSFOLDER=~/pkgbuild + +#Remote +APTREPO=/aptrepo +USER=compuwizard123 +HOST=compuwizard123.dyndns.org + +#build using 2 threads +BUILD="debuild -j2 -uc -us" + +#look for new libgis version +APP=libgis +cd $SRCSFOLDER/$APP/ +uscan --download-version $VERSION +cd $SRCSFOLDER/$APP/${APP}-$OLDVERSION/ +uupdate -v $VERSION ../${APP}-$VERSION.tar.gz +cd $SRCSFOLDER/$APP/${APP}-$VERSION/ +cp $SRCSFOLDER/$APP/${APP}-$OLDVERSION/debian/watch debian/ + +#build libgis and libgis-dev +$BUILD +dchroot -d "linux32 $BUILD -ai386" + +#copy libgis and libgis-dev to remote repo +scp ../${APP}_$VERSION-0ubuntu1.diff.gz ../${APP}_$VERSION-0ubuntu1.dsc ../${APP}_$VERSION.orig.tar.gz $USER@$HOST:$APTREPO/source/ +scp ../${APP}_$VERSION-0ubuntu1_amd64.deb ../${APP}-dev_$VERSION-0ubuntu1_amd64.deb ../${APP}_$VERSION-0ubuntu1_i386.deb ../${APP}-dev_$VERSION-0ubuntu1_i386.deb $USER@$HOST:$APTREPO/binary/ + +#install updated libgis and libgis-dev before building aweather +sudo dpkg --install ../${APP}_$VERSION-0ubuntu1_amd64.deb +sudo dpkg --install ../$APP-dev_$VERSION-0ubuntu1_amd64.deb +dchroot -d "linux32 sudo dpkg --install ../${APP}_$VERSION-0ubuntu1_i386.deb" +dchroot -d "linux32 sudo dpkg --install ../$APP-dev_$VERSION-0ubuntu1_i386.deb" + +#look for new aweather version +APP=aweather +cd $SRCSFOLDER/$APP/ +uscan --download-version $VERSION +cd $SRCSFOLDER/$APP/${APP}-$OLDVERSION/ +uupdate -v $VERSION ../$APP-$VERSION.tar.gz +cd $SRCSFOLDER/$APP/$APP-$VERSION/ +cp $SRCSFOLDER/$APP/${APP}-$OLDVERSION/debian/watch debian/ + +#build aweather +$BUILD +dchroot -d "linux32 $BUILD -ai386" + +#copy aweather to remote repo +scp ../${APP}_$VERSION-0ubuntu1.diff.gz ../${APP}_$VERSION-0ubuntu1.dsc ../${APP}_$VERSION.orig.tar.gz $USER@$HOST:$APTREPO/source/ +scp ../${APP}_$VERSION-0ubuntu1_amd64.deb ../${APP}_$VERSION-0ubuntu1_i386.deb $USER@$HOST:$APTREPO/binary/ + +#update remote repo +ssh $USER@$HOST '~/pkgbuild/aptrepo.sh' -- 2.43.2