Modified wrapper scripts to pass all command-line options after --

to pandoc.  These options override the environment variable PANDOC_OPTS,
if it is set.  (Note:  these changes don't include changes to the
documentation or man pages, or to markdown2pdf.)


git-svn-id: https://pandoc.googlecode.com/svn/trunk@95 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
fiddlosopher 2006-11-13 15:22:41 +00:00
parent 2763382dd8
commit 574290c92f
4 changed files with 32 additions and 3 deletions

View file

@ -22,6 +22,13 @@ for p in pandoc tidy; do
}
done
ALL="$*"
ARGS=${ALL%%-- *}
REST=${ALL#$ARGS}
REST=${REST#--}
PANDOC_OPTS=${REST:-$PANDOC_OPTS}
if [ -z "$1" ] || [ -f $1 ]; then
tidy -utf8 $1 2>/dev/null | \
pandoc $PANDOC_OPTS -r html -w markdown -s | \

View file

@ -21,4 +21,12 @@ for p in pandoc; do
}
done
iconv -t utf-8 $* | pandoc $PANDOC_OPTS -r latex -w markdown -s | iconv -f utf-8
ALL="$*"
ARGS=${ALL%%-- *}
REST=${ALL#$ARGS}
REST=${REST#--}
PANDOC_OPTS=${REST:-$PANDOC_OPTS}
iconv -t utf-8 $ARGS | pandoc $PANDOC_OPTS -r latex -w markdown -s | \
iconv -f utf-8

View file

@ -21,4 +21,11 @@ for p in pandoc; do
}
done
iconv -t utf-8 $* | pandoc $PANDOC_OPTS | iconv -f utf-8
ALL="$*"
ARGS=${ALL%%-- *}
REST=${ALL#$ARGS}
REST=${REST#--}
PANDOC_OPTS=${REST:-$PANDOC_OPTS}
iconv -t utf-8 $ARGS | pandoc $PANDOC_OPTS | iconv -f utf-8

View file

@ -21,4 +21,11 @@ for p in pandoc; do
}
done
iconv -t utf-8 $* | pandoc $PANDOC_OPTS -w latex -s | iconv -f utf-8
ALL="$*"
ARGS=${ALL%%-- *}
REST=${ALL#$ARGS}
REST=${REST#--}
PANDOC_OPTS=${REST:-$PANDOC_OPTS}
iconv -t utf-8 $ARGS | pandoc $PANDOC_OPTS -w latex -s | iconv -f utf-8