summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2015-10-12 11:36:56 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2015-10-12 11:36:56 (GMT)
commit3db39d3c759f0fbcc73f68fe832d90fd3f8f9821 (patch)
tree6d4b9bff2175f727d2f6aa9026ac5bb21208e18f
parent7055a8e4bd3653d2cf3faf042f45d5900fab3f13 (diff)
downloadsite-3db39d3c759f0fbcc73f68fe832d90fd3f8f9821.tar.gz
Also build snapshots of "maint-x.y" branches
-rwxr-xr-xbin/build-snapshots9
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/build-snapshots b/bin/build-snapshots
index 735aa16..63bfabc 100755
--- a/bin/build-snapshots
+++ b/bin/build-snapshots
@@ -21,7 +21,6 @@ prefix='/home/plugins'
21keep_days=2 21keep_days=2
22snapshot_dir="$prefix/web/download/snapshot" 22snapshot_dir="$prefix/web/download/snapshot"
23repository="$prefix/repositories/monitoring-plugins.git" 23repository="$prefix/repositories/monitoring-plugins.git"
24branches=${*:-'master pu'}
25myself=${0##*/} 24myself=${0##*/}
26 25
27make_dist() 26make_dist()
@@ -102,6 +101,14 @@ src_dir="$temp_dir/src"
102git clone --quiet --shared --no-checkout "$repository" "$src_dir" 101git clone --quiet --shared --no-checkout "$repository" "$src_dir"
103cd "$src_dir" 102cd "$src_dir"
104 103
104if [ $# -gt 0 ]
105then
106 branches=$*
107else
108 branches=$(git --git-dir="$repository" show-ref \
109 | awk -F '/' '/refs\/heads\/(master|maint|pu)/ {print $NF}')
110fi
111
105for branch in $branches 112for branch in $branches
106do 113do
107 git show-ref --verify "refs/remotes/origin/$branch" \ 114 git show-ref --verify "refs/remotes/origin/$branch" \