File: note.awk

package info (click to toggle)
python-skytools 3.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 620 kB
  • sloc: python: 6,394; ansic: 929; makefile: 38; awk: 14
file content (20 lines) | stat: -rw-r--r-- 304 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# extract version notes for version VER

/^[-_0-9a-zA-Z]+ v?[0-9]/ {
    if ($2 == VER) {
        good = 1
        next
    } else {
        good = 0
    }
}

/^(===|---)/ { next }

{
    if (good) {
        # also remove sphinx syntax
        print gensub(/:(\w+):`~?([^`]+)`/, "``\\2``", "g")
    }
}