projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
437281a
)
add hour to timestamp; don't build packages needlessly
author
Ivan Kohler
<ivan@freeside.biz>
Tue, 21 Nov 2017 22:30:57 +0000
(14:30 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Tue, 21 Nov 2017 22:30:57 +0000
(14:30 -0800)
bin/freeside-debian-releases.sh
patch
|
blob
|
history
diff --git
a/bin/freeside-debian-releases.sh
b/bin/freeside-debian-releases.sh
index
84d4e92
..
13dbcce
100755
(executable)
--- a/
bin/freeside-debian-releases.sh
+++ b/
bin/freeside-debian-releases.sh
@@
-10,7
+10,7
@@
if [[ $# -ne 3 ]]
exit;
fi
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"
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
# 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`
git pull
#STATUS=`git pull`