1 #!/bin/sh 2 3 THISDIR=`dirname "$0"` 4 INDIR="$THISDIR/../wiki" 5 6 ROOT="Lichen" 7 8 MAPPING='--mapping WikiPedia https://en.wikipedia.org/wiki/' 9 THEME='--theme mercurial' 10 11 if [ "$1" = '--web' ] ; then 12 DOCINDEX= 13 shift 1 14 else 15 DOCINDEX='--document-index index.html' 16 fi 17 18 if [ "$1" = '-o' ] ; then 19 OUTDIR="$2" 20 shift 2 21 else 22 OUTDIR="$THISDIR/../html" 23 fi 24 25 FILENAMES=${*:-'--all'} 26 27 moinconvert --input-dir "$INDIR" \ 28 --input-page-sep '--' \ 29 --output-dir "$OUTDIR" \ 30 --root "$ROOT" \ 31 --format html \ 32 --macros \ 33 $DOCINDEX \ 34 $MAPPING \ 35 $THEME \ 36 $FILENAMES