CRUX PPC
A lightweight GNU/Linux distribution for PowerPC!
Subversion Repository
Parent Directory
|
Revision Log
Revision 36 -
(show annotations)
Sun Nov 15 12:13:45 2009 UTC (3 years, 6 months ago) by acrux
File size: 548 byte(s)
Sun Nov 15 12:13:45 2009 UTC (3 years, 6 months ago) by acrux
File size: 548 byte(s)
synced with 2.6RC1
| 1 | #!/bin/bash |
| 2 | # Quick hack to generate handbook.txt from pmwiki |
| 3 | # Johannes Winkelmann, jw at tks6 dot net |
| 4 | |
| 5 | INFILE=handbook.in |
| 6 | OUTFILE=handbook.txt |
| 7 | CRUXPPC_VERSION=2.6 |
| 8 | TITLE="HANDBOOK FOR CRUX PPC $CRUXPPC_VERSION" |
| 9 | URL="http://cruxppc.org/Main/Handbook${CRUXPPC_VERSION/\./-}?action=print" |
| 10 | |
| 11 | set -x |
| 12 | links -no-numbering -no-references -dump $URL > $INFILE |
| 13 | cat $INFILE|while read n; do |
| 14 | if [ -n "$intext" ]; then |
| 15 | cat |
| 16 | elif [ "$n" = "1. Preface" ]; then |
| 17 | echo "$TITLE" |
| 18 | echo ""; |
| 19 | echo " $n"; |
| 20 | intext="yes"; |
| 21 | fi |
| 22 | done > $OUTFILE |
| 23 | |
| 24 | rm $INFILE |
| 25 |
Properties
| Name | Value |
|---|---|
| svn:executable | * |