blob: 9d5d51243e755c095ccc1878b9e84f7f6e62547f (
plain)
1 #!/bin/bash
2 # Quick hack to generate handbook.txt from pmwiki
3 # Johannes Winkelmann, jw at tks6 dot net
4
5 INFILE=releasenotes.in
6 OUTFILE=releasenotes.txt
7 CRUX_VERSION=3.2
8 URL="http://crux.nu/Main/ReleaseNotes${CRUX_VERSION//\./-}?action=print"
9
10 set -x
11 links -no-numbering -no-references -dump $URL > $INFILE
12 cat $INFILE|while read n; do
13 if [ -n "$intext" ]; then
14 cat
15 elif [ "$n" = "Main: ReleaseNotes${CRUX_VERSION//\./-}" ]; then
16 intext="yes";
17 fi
18 done > $OUTFILE
19
20 rm $INFILE
|