]> granicus.if.org Git - docbook-dsssl/commitdiff
Corrected pattern match for Revision line.
authorMichael Smith <xmldoc@users.sourceforge.net>
Sat, 6 Oct 2007 10:43:08 +0000 (10:43 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Sat, 6 Oct 2007 10:43:08 +0000 (10:43 +0000)
releasetools/docbook-build

index d531747b57de07a393e729e051993e270fe89cb3..0d05ba8edc07503cc03a47bbdba6e9f0dc4a6d16 100755 (executable)
@@ -141,7 +141,7 @@ while getopts ":a:b:e:f:d:hl:p:rst:u:v:x:z:" opt; do
          while read -r LINE
          do
           if echo $LINE | grep "^Revision: " >/dev/null; then
-            REVISION=$(echo $LINE | sed '^s/Revision: \[\([^\]\+\)\]$/\1/')
+            REVISION=$(echo $LINE | sed '^s/Revision: \(.+\)$/\1/')
             break
           fi
           if echo $LINE | grep "^Modified: " >/dev/null; then