13 months ago | Paul Boddie | file changeset files shortlog | Reformatted, tidied up whitespace. | cpm-library-improvements |
paul@49 | 1 | #!/bin/sh |
paul@49 | 2 | |
paul@51 | 3 | THISDIR=`dirname "$0"` |
paul@51 | 4 | INDIR="$THISDIR/../wiki" |
paul@51 | 5 | OUTDIR="$THISDIR/../html" |
paul@51 | 6 | |
paul@51 | 7 | ROOT="Landfall" |
paul@51 | 8 | |
paul@51 | 9 | MAPPING='--mapping WikiPedia https://en.wikipedia.org/wiki/' |
paul@51 | 10 | THEME='--theme mercurial' |
paul@51 | 11 | |
paul@49 | 12 | if [ "$1" = '--web' ] ; then |
paul@49 | 13 | DOCINDEX= |
paul@49 | 14 | shift 1 |
paul@49 | 15 | else |
paul@49 | 16 | DOCINDEX='--document-index index.html' |
paul@49 | 17 | fi |
paul@49 | 18 | |
paul@49 | 19 | FILENAMES=${*:-'--all'} |
paul@49 | 20 | |
paul@51 | 21 | moinconvert --input-dir "$INDIR" \ |
paul@49 | 22 | --input-page-sep '--' \ |
paul@51 | 23 | --output-dir "$OUTDIR" \ |
paul@51 | 24 | --root "$ROOT" \ |
paul@51 | 25 | --format html \ |
paul@49 | 26 | --macros \ |
paul@49 | 27 | $DOCINDEX \ |
paul@51 | 28 | $MAPPING \ |
paul@51 | 29 | $THEME \ |
paul@49 | 30 | $FILENAMES |