r20829 - meta/hooks - Fix the post-commit hook to push gnucash-docs into github properly

Derek Atkins warlord at code.gnucash.org
Sat Jul 2 19:05:35 EDT 2011


Author: warlord
Date: 2011-07-02 19:05:35 -0400 (Sat, 02 Jul 2011)
New Revision: 20829
Trac: http://svn.gnucash.org/trac/changeset/20829

Modified:
   meta/hooks/post-commit
Log:
Fix the post-commit hook to push gnucash-docs into github properly


Modified: meta/hooks/post-commit
===================================================================
--- meta/hooks/post-commit	2011-07-02 20:50:00 UTC (rev 20828)
+++ meta/hooks/post-commit	2011-07-02 23:05:35 UTC (rev 20829)
@@ -79,14 +79,16 @@
       cd /home/nmz/nmz-beta && svn update && make nmz URLBASE=/beta )
 
 # 2011-06-27: jralls + warlord: Tickle Server to update the Github mirror.
-[ `${SVNLOOK} changed "${REPOS}" -r "${REV}" | ${EGREP} -c "^....htdocs"` != 0 ] && \
+#   note:  only one should tickle, so once we find one that matches, that's
+#          it.  This means "gnucash-docs" should be before "gnucash", otherwise
+#          the shorter name would match first. -- warlord
+if [ `${SVNLOOK} changed "${REPOS}" -r "${REV}" | ${EGREP} -c "^....htdocs"` != 0 ] ; then
     "${REPOS}"/hooks/update-github gnucash-htdocs
-
-[ `${SVNLOOK} changed "${REPOS}" -r "${REV}" | ${EGREP} -c "^....docs"` != 0 ] && \
+elif [ `${SVNLOOK} changed "${REPOS}" -r "${REV}" | ${EGREP} -c "^....gnucash-docs"` != 0 ] ; then
     "${REPOS}"/hooks/update-github gnucash-docs
-
-[ `${SVNLOOK} changed "${REPOS}" -r "${REV}" | ${EGREP} -c "^....gnucash"` != 0 ] && \
+elif [ `${SVNLOOK} changed "${REPOS}" -r "${REV}" | ${EGREP} -c "^....gnucash"` != 0 ] ; then
     "${REPOS}"/hooks/update-github gnucash
+fi
 
 # 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



More information about the gnucash-changes mailing list