[freeside-commits] branch FREESIDE_4_BRANCH updated. fcae511351793b5d81228cb1f8fdb88a642fed50

Ivan Kohler ivan at freeside.biz
Tue Nov 21 14:31:01 PST 2017


The branch, FREESIDE_4_BRANCH has been updated
       via  fcae511351793b5d81228cb1f8fdb88a642fed50 (commit)
      from  be9a6369ff99184be0772c506e3fa9dce8d1b932 (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 fcae511351793b5d81228cb1f8fdb88a642fed50
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Nov 21 14:31:00 2017 -0800

    add hour to timestamp; don't build packages needlessly

diff --git a/bin/freeside-debian-releases.sh b/bin/freeside-debian-releases.sh
index 84d4e92dc..13dbccea3 100755
--- a/bin/freeside-debian-releases.sh
+++ b/bin/freeside-debian-releases.sh
@@ -10,7 +10,7 @@ if [[ $# -ne 3 ]]
     exit;
 fi
 
-DATE=`date +"%Y%m%d"`
+DATE=`date +"%Y%m%d%H"`
 DIR="/home/autobuild/packages/staging/freeside$FS_VERSION/$FS_REPO"
 TARGET="/home/autobuild/public_html/freeside$FS_VERSION-$DISTRO-$FS_REPO"
 
@@ -28,6 +28,16 @@ rm -fr $DIR/freeside/debian/freeside-ng-selfservice.conffiles
 # Pull any changes
 cd $DIR/freeside
 git checkout -- debian/changelog
+
+LOCAL=`git rev-parse FREESIDE_${FS_VERSION}_BRANCH`
+REMOTE=`git ls-remote origin -h refs/heads/FREESIDE_${FS_VERSION}_BRANCH | cut -f1`
+
+if [ $LOCAL = $REMOTE ]; then
+  echo "No new changes in git; aborting build."
+  exit #there's no new changes
+fi
+echo "New changes in git since last build; building new packages."
+
 git pull
 #STATUS=`git pull`
 

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

Summary of changes:
 bin/freeside-debian-releases.sh | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list