[freeside-commits] branch FREESIDE_4_BRANCH updated. 02ca2b327abd13fb7a05422a936792d20b1f3eaf

Jeremy Davis jeremyd at 420.am
Wed Jul 15 07:32:54 PDT 2015


The branch, FREESIDE_4_BRANCH has been updated
       via  02ca2b327abd13fb7a05422a936792d20b1f3eaf (commit)
      from  b1229372b88d7ff3b755a7bc3de89f61a35e1447 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 02ca2b327abd13fb7a05422a936792d20b1f3eaf
Author: Jeremy Davis <jeremyd at freeside.biz>
Date:   Tue Jul 14 16:42:25 2015 -0400

    Debian package release script

diff --git a/bin/freeside-debian-releases.sh b/bin/freeside-debian-releases.sh
new file mode 100644
index 0000000..8246526
--- /dev/null
+++ b/bin/freeside-debian-releases.sh
@@ -0,0 +1,52 @@
+#!/bin/bash
+
+DISTRO="$1"
+FS_VERSION="$2"
+FS_REPO="$3"
+
+if [[ $# -ne 3 ]]
+  then
+    echo "We need 3 arguments"
+    exit;
+fi
+
+DATE=`date +"%Y%m%d"`
+DIR="/home/autobuild/packages/staging/freeside$FS_VERSION/$FS_REPO"
+TARGET="/home/jeremyd/public_html/freeside$FS_VERSION-$DISTRO-$FS_REPO"
+
+if [ ! -d "$DIR" -a -d $TARGET ]; then
+
+echo "Staging or Target directories do not exist"
+
+fi
+
+GIT_VERSION=`grep '^$VERSION' $DIR/freeside/FS/FS.pm | cut -d\' -f2`
+
+# Clean configuration file
+rm -fr $DIR/freeside/debian/freeside-ng-selfservice.conffiles
+
+# Pull any changes
+cd $DIR/freeside
+STATUS=`git pull`
+
+#Assign the proper config files for freeside-ng-selfservice
+if [ $DISTRO = "wheezy" ]; then
+	ln -s $DIR/freeside/debian/freeside-ng-selfservice.deb7 $DIR/freeside/debian/freeside-ng-selfservice.conffiles
+else
+	ln -s $DIR/freeside/debian/freeside-ng-selfservice.deb8 $DIR/freeside/debian/freeside-ng-selfservice.conffiles
+fi
+
+# Add the build information to changelog
+
+dch -b --newversion $GIT_VERSION~$DATE "Auto-Build"
+
+# Using pbuilder and pdebuild in chroot instead of building directly : dpkg-buildpackage -b -rfakeroot -uc -us
+
+pdebuild --pbuilderroot sudo --debbuildopts "-b -rfakeroot -uc -us" --buildresult $TARGET --architecture all -- --distribution $DISTRO  --basetgz /var/cache/pbuilder/$DISTRO.tgz
+
+#--buildresult gets the file where it needs to be, may need to clean up DIR
+
+cd $DIR; rm -f freeside_*
+cd $TARGET; rm -f *.gz
+
+$TARGET/APT

-----------------------------------------------------------------------

Summary of changes:
 bin/freeside-debian-releases.sh |   52 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
 create mode 100644 bin/freeside-debian-releases.sh




More information about the freeside-commits mailing list