Author: jw Date: 2006-03-27 09:58:13 +0200 (Mon, 27 Mar 2006) New Revision: 1039 Added: crux-2.2/doc/handbook/get_wiki_handbook Log: add a script to generate handbook.txt from the wiki Added: crux-2.2/doc/handbook/get_wiki_handbook =================================================================== --- crux-2.2/doc/handbook/get_wiki_handbook (rev 0) +++ crux-2.2/doc/handbook/get_wiki_handbook 2006-03-27 07:58:13 UTC (rev 1039) @@ -0,0 +1,24 @@ +#!/bin/bash +# Quick hack to generate handbook.txt from pmwiki +# Johannes Winkelmann, jw at tks6 dot net + +INFILE=handbook.in +OUTFILE=handbook.txt +CRUX_VERSION=2.2 +TITLE="HANDBOOK FOR CRUX $CRUX_VERSION" +URL="http://crux.nu/Main/Handbook${CRUX_VERSION/\./-}?action=print" + +set -x +links -no-numbering -no-references -dump $URL > $INFILE +cat $INFILE|while read n; do + if [ -n "$intext" ]; then + cat + elif [ "$n" = "1. Preface" ]; then + echo "$TITLE" + echo ""; + echo " $n"; + intext="yes"; + fi +done > $OUTFILE + +rm $INFILE Property changes on: crux-2.2/doc/handbook/get_wiki_handbook ___________________________________________________________________ Name: svn:executable + *