Welcome to mirror list, hosted at ThFree Co, Russian Federation.

changelog-head.sh « tools - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 94821e107f2737a5f8d5a5406b72dd3fb159c1ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
cat ChangeLog | {
  s=-1
  while read line; do
    if [ "${line:0:1}" == "-" ]; then
      line="  $line"
    fi
    if [ "${line:0:1}" == "2" ]; then
      let "++s"
    fi
    if [ $s -eq 1 ]; then
      exit
    else
      echo "$line"
    fi
  done
}