summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2019-03-04 11:33:51 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2019-03-04 11:33:51 +0100
commitcfeccb841ed9b064080021e14d8f5e268760cbf9 (patch)
tree151a0d66e01afeb3bc76afd4cc6df2b5f1198c37
parentc9c3a9c6971e65c66a1bae461d963a86d9abb13b (diff)
Add stable branch checker script
Check if we have new commits in a stable branch and send out a notification mail. Useful to run from a cron job every week or so.
-rwxr-xr-xstable-branch-new-backport-checker.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/stable-branch-new-backport-checker.sh b/stable-branch-new-backport-checker.sh
new file mode 100755
index 0000000..1faedd6
--- /dev/null
+++ b/stable-branch-new-backport-checker.sh
@@ -0,0 +1,20 @@
1#!/bin/bash
2
3# To be run as cron job every Monday to notify us if there should be a new stable release
4# EDIT efl tree location and make sure to checkout the stable branch you want to track.
5cd /home/stefan/efl
6git pull
7
8LAST_RELEASE=$(git describe --abbrev=0)
9COUNT=$(git log --pretty=oneline $LAST_RELEASE..HEAD | wc -l)
10
11if [ $COUNT -gt 0 ]
12then
13mail -H -s "New commits in EFL stable branch, time for a release" -r "Friendly stable release bot <git@git.enlightenment.org>" -c stefan@datenfreihafen.org -c jaquilina@eagleeyet.net enlightenment-devel@lists.sourceforge.net << EOF
14As of this Monday, $(date -I), we have $COUNT new patches since EFL release $LAST_RELEASE.
15
16$(git log --pretty=oneline $LAST_RELEASE..HEAD)
17
18We will spin a new stable update release this week. Stay tuned.
19EOF
20fi