]> granicus.if.org Git - docbook-dsssl/commitdiff
Use the Revision: and Modified: lines in the message body to get
authorMichael Smith <xmldoc@users.sourceforge.net>
Sat, 6 Oct 2007 10:38:50 +0000 (10:38 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Sat, 6 Oct 2007 10:38:50 +0000 (10:38 +0000)
the revision number and pathname of changed file.

releasetools/docbook-build

index ec331acf50b15f64dfc4825f5ca8f0b74946db46..d531747b57de07a393e729e051993e270fe89cb3 100755 (executable)
@@ -140,9 +140,12 @@ while getopts ":a:b:e:f:d:hl:p:rst:u:v:x:z:" opt; do
     r  ) # parse commit message
          while read -r LINE
          do
-          if echo $LINE | grep "^Subject: " >/dev/null; then
-            CHANGEPATH=$(echo $LINE | sed 's/^Subject: SF.net SVN: docbook: \[[^\]\+\]\(.\+\)$/\1/')
-            REVISION=$(echo $LINE | sed 's/^Subject: SF.net SVN: docbook: \[\([^\]\+\)\].\+$/\1/')
+          if echo $LINE | grep "^Revision: " >/dev/null; then
+            REVISION=$(echo $LINE | sed '^s/Revision: \[\([^\]\+\)\]$/\1/')
+            break
+          fi
+          if echo $LINE | grep "^Modified: " >/dev/null; then
+            CHANGEPATH=$(echo $LINE | sed 's/^Modified: \(.+\)$/\1/')
             break
           fi
          done ;;