summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xset-serial.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/set-serial.sh b/set-serial.sh
index fe9b442..08cbe24 100755
--- a/set-serial.sh
+++ b/set-serial.sh
@@ -14,7 +14,7 @@ set-serial-number()
for n in "$@"; do
echo "$n ... "
# Determine the number of revisions that have occurred to the macro.
- revision=$(git log -- "$n" | egrep -c '^commit [0-9a-f]')
+ revision=$(git log --oneline -- "$n" | wc -l)
# Update the serial number in the m4 file.
set-serial-number "$n" "$revision"
# Check whether git regards the file as "modified" now. If it does,