summaryrefslogtreecommitdiff
path: root/tools/changelog-head.sh
blob: e0cec166385d07c2ec6e61f341f7ebf060c25be1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}