]> Pileus Git - aweather/commitdiff
Added ubuntu build scripts
authorKevin Risden <risdenkj@risdenkj-1.(none)>
Sun, 16 May 2010 04:20:55 +0000 (00:20 -0400)
committerKevin Risden <risdenkj@risdenkj-1.(none)>
Sun, 16 May 2010 04:20:55 +0000 (00:20 -0400)
aptrepo.sh [new file with mode: 0755]
update_build.sh [new file with mode: 0755]

diff --git a/aptrepo.sh b/aptrepo.sh
new file mode 100755 (executable)
index 0000000..2bfd609
--- /dev/null
@@ -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 (executable)
index 0000000..a0ea1e6
--- /dev/null
@@ -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'