r14524 - meta/hooks - Update the subject line of changesets requesting a Backport Audit.

Derek Atkins warlord at cvs.gnucash.org
Sun Jul 16 19:08:46 EDT 2006


Author: warlord
Date: 2006-07-16 19:08:46 -0400 (Sun, 16 Jul 2006)
New Revision: 14524
Trac: http://svn.gnucash.org/trac/changeset/14524

Modified:
   meta/hooks/post-commit
Log:
Update the subject line of changesets requesting a Backport Audit.


Modified: meta/hooks/post-commit
===================================================================
--- meta/hooks/post-commit	2006-07-16 23:01:00 UTC (rev 14523)
+++ meta/hooks/post-commit	2006-07-16 23:08:46 UTC (rev 14524)
@@ -49,24 +49,36 @@
 # We need this to force running in the UTF-8 locale for email sending
 export LANG=en_US.UTF-8
 
-COMMIT_EMAIL=${REPOS}/hooks/commit-email.pl
+# Set the location of svnlook and egrep
+SVNLOOK=/usr/bin/svnlook
+EGREP=/bin/egrep
+
+# Determine if this commit requests a backport audit
+SUBJ=
+[ `${SVNLOOK} info "${REPOS}" -r "${REV}" | ${EGREP} -c '^BP$'` != 0 ] && \
+  SUBJ="-s AUDIT:"
+
+COMMIT_EMAIL="${REPOS}"/hooks/commit-email.pl
 # with diffs...
-${COMMIT_EMAIL} "$REPOS" "$REV" gnucash-changes at gnucash.org
+"${COMMIT_EMAIL}" $SUBJ "$REPOS" "$REV" gnucash-changes at gnucash.org
 # ('-n'=) without diffs... 
-${COMMIT_EMAIL} -n "$REPOS" "$REV" gnucash-patches at gnucash.org
+"${COMMIT_EMAIL}" -n $SUBJ "$REPOS" "$REV" gnucash-patches at gnucash.org
 
 # 2005-11-02, jsled: If the commit changed meta/hooks/, then update the repository's hooks dir.
-SVNLOOK=/usr/bin/svnlook
-EGREP=/bin/egrep
-[ `${SVNLOOK} changed ${REPOS} -r ${REV} | ${EGREP} -c "^....meta/hooks"` != 0 ] && \
-    cd ${REPOS}/hooks && svn update
+[ `${SVNLOOK} changed "${REPOS}" -r "${REV}" | ${EGREP} -c "^....meta/hooks"` != 0 ] && \
+    cd "${REPOS}"/hooks && svn update
 
 # 2006-05-08: jsled: tickle www.gnucash.org if the published branches changes.
 # 2006-05-31: warlord: also update the namazu templates
-[ `${SVNLOOK} changed ${REPOS} -r ${REV} | ${EGREP} -c "^....htdocs/trunk"` != 0 ] && \
-    ( ${REPOS}/hooks/update-website ; \
+[ `${SVNLOOK} changed "${REPOS}" -r "${REV}" | ${EGREP} -c "^....htdocs/trunk"` != 0 ] && \
+    ( "${REPOS}"/hooks/update-website ; \
       cd /home/nmz/nmz && svn update && make nmz )
 
-[ `${SVNLOOK} changed ${REPOS} -r ${REV} | ${EGREP} -c "^....htdocs/branches/beta"` != 0 ] && \
-    ( ${REPOS}/hooks/update-website-beta ; \
+[ `${SVNLOOK} changed "${REPOS}" -r "${REV}" | ${EGREP} -c "^....htdocs/branches/beta"` != 0 ] && \
+    ( "${REPOS}"/hooks/update-website-beta ; \
       cd /home/nmz/nmz-beta && svn update && make nmz URLBASE=/beta )
+
+# 2006-07-14 warlord: check the log looking for backport requests
+# - If we find a log with 'BP' then send another email to gnucash-devel
+#[ `${SVNLOOK} info "${REPOS}" -r "${REV}" | ${EGREP} -c '^BP$'` != 0 ] && \
+#  "${COMMIT_EMAIL}" -n -bp -s "Backport Request:" "$REPOS" "$REV" gnucash-devel at gnucash.org



More information about the gnucash-changes mailing list