diff options
Diffstat (limited to 'tools/changelog-head.sh')
-rw-r--r-- | tools/changelog-head.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/changelog-head.sh b/tools/changelog-head.sh new file mode 100644 index 0000000000..e0cec16638 --- /dev/null +++ b/tools/changelog-head.sh @@ -0,0 +1,15 @@ +#!/bin/bash +cat ChangeLog | { + s=-1 + while read line; do + if [ "${line:0:1}" == "2" ]; then + let "++s" + fi + if [ $s -eq 1 ]; then + exit + else + echo "$line" + fi + done +} + |