mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
Minor corrections.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@19 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
+5
-5
@@ -21,7 +21,7 @@ for option; do
|
||||
optarg=$(expr "x$option" : 'x[^=]*=\(.*\)')
|
||||
case $option in
|
||||
-h | --h | --help )
|
||||
help=yes
|
||||
help=1
|
||||
shift ;;
|
||||
-o | --o | --output )
|
||||
prev=outfile
|
||||
@@ -35,10 +35,10 @@ for option; do
|
||||
esac
|
||||
done
|
||||
|
||||
if [ "$help" = "yes" ]; then
|
||||
echo "Usage: $0 [-o|--output output-file] [input-file]"
|
||||
[ -z "$help" ] || {
|
||||
echo >&2 "Usage: $0 [-o|--output output-file] [input-file]"
|
||||
exit 0
|
||||
fi
|
||||
}
|
||||
|
||||
infile=$1
|
||||
if [ -z "$outfile" ]; then
|
||||
@@ -69,7 +69,7 @@ iconv -t utf-8 $infile | pandoc -w latex -s > $TEMP/$BASE.tex
|
||||
) || exit $?
|
||||
|
||||
is_target_exists=
|
||||
if [ -f $BASE.pdf ]; then
|
||||
if [ -f $outfile ]; then
|
||||
is_target_exists=1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user