15 months ago | Paul Boddie | raw annotate files changeset graph | Record the number of segments when initialising a payload variant, since various methods depend on this value, but the header data that provides it may no longer be available when it is required, upon destruction, for example. |
1 #!/bin/sh 2 3 THISDIR=`dirname "$0"` 4 INDIR="$THISDIR/../wiki" 5 OUTDIR="$THISDIR/../html" 6 7 ROOT="Filesystems" 8 9 MAPPING='--mapping WikiPedia https://en.wikipedia.org/wiki/' 10 THEME='--theme mercurial' 11 12 if [ "$1" = '--web' ] ; then 13 DOCINDEX= 14 shift 1 15 else 16 DOCINDEX='--document-index index.html' 17 fi 18 19 FILENAMES=${*:-'--all'} 20 21 moinconvert --input-dir "$INDIR" \ 22 --input-page-sep '--' \ 23 --output-dir "$OUTDIR" \ 24 --root "$ROOT" \ 25 --format html \ 26 --macros \ 27 $DOCINDEX \ 28 $MAPPING \ 29 $THEME \ 30 $FILENAMES