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:
parent
2763382dd8
commit
574290c92f
4 changed files with 32 additions and 3 deletions
|
@ -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 | \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue