File: changelog.sh

package info (click to toggle)
haskell-futhark 0.25.32-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 18,236 kB
  • sloc: haskell: 100,484; ansic: 12,100; python: 3,440; yacc: 785; sh: 561; javascript: 558; lisp: 399; makefile: 277
file content (17 lines) | stat: -rwxr-xr-x 276 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
#
# Extract CHANGELOG.md entries for a given version number.
#
# Usage:
#
# $ sh changelog.sh x.y.z < CHANGELOG.md

set -e

if [ $# -ne 1 ]; then
    echo "Usage: $0 x.y.z"
fi

awk '/^## /  { thisone = index($0,V) != 0; next } \
     thisone { print }' \
    "V=$1"