git.iko.soy/typeable/pandoc
on master help sign in
Minor corrections.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@19 788f1e2b-df1e-0410-8736-df70ead52e1b

commit469a36d8453d49a8d339f1b8d6865e3a4860bdf2 authorroktas <roktas@788f1e2b-df1e-0410-8736-df70ead52e1b> dateFri 27 Oct 2006, 12:25 (20 years ago) parentb7784aa
1 file changed+5−5
markdown2pdf+5−5
markdown2pdf+5−5
@@ -21,7 +21,7 @@ for option; do
2121 optarg=$(expr "x$option" : 'x[^=]*=\(.*\)')
2222 case $option in
2323 -h | --h | --help )
24− help=yes
24+ help=1
2525 shift ;;
2626 -o | --o | --output )
2727 prev=outfile
@@ -35,10 +35,10 @@ for option; do
3535 esac
3636done
3737
38−if [ "$help" = "yes" ]; then
39− echo "Usage: $0 [-o|--output output-file] [input-file]"
38+[ -z "$help" ] || {
39+ echo >&2 "Usage: $0 [-o|--output output-file] [input-file]"
4040 exit 0
41−fi
41+}
4242
4343infile=$1
4444if [ -z "$outfile" ]; then
@@ -69,7 +69,7 @@ iconv -t utf-8 $infile | pandoc -w latex -s > $TEMP/$BASE.tex
6969) || exit $?
7070
7171is_target_exists=
72−if [ -f $BASE.pdf ]; then
72+if [ -f $outfile ]; then
7373 is_target_exists=1
7474fi
7575