blob: e3e31ef83922d8059078ff6571044cad4d293619 (
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.4
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
|