diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2006-12-29 21:25:13 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2006-12-29 21:25:13 +0000 |
commit | 3c9fd01ad8fc4d4c555bdde1d28a97e57c51af0c (patch) | |
tree | 3b6d040b25502e1aa3fe54e1f9c8ee09a4b5e3d1 /web | |
parent | 96c614083ef4c7143e368fa483753401f9df9703 (diff) | |
download | pandoc-3c9fd01ad8fc4d4c555bdde1d28a97e57c51af0c.tar.gz |
+ Renamed web/demos.sh to mkdemos.sh
+ Added parameter for directory containing executables
+ Changed arithmetic statement for portability.
+ Modified Makefile accordingly.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@315 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'web')
-rw-r--r-- | web/mkdemos.sh (renamed from web/demos.sh) | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/web/demos.sh b/web/mkdemos.sh index bd87151d5..e33c464f8 100644 --- a/web/demos.sh +++ b/web/mkdemos.sh @@ -1,8 +1,10 @@ #!/bin/sh -e # creates demo page for pandoc -# argument is the destination directory +# argument #1 is the destination directory +# argument #2 is the directory containing pandoc, html2markdown, markdown2pdf DEST=$1 +PROGPATH=$2 NEWLINE=' ' @@ -24,7 +26,7 @@ set -- $DEMOS IFS=$oldifs cd $DEST -PATH=../..:$PATH +PATH=$PROGPATH:$PATH echo '% Pandoc demos @@ -34,7 +36,7 @@ click on the name of the output file: ' num=0 for command in "$@"; do - num=$((num + 1)) + num=$(($num + 1)) command=$(echo $command | sed -e "s/0/$num/") firstpart=$(echo $command | sed -e 's/\(.*\) [^ ]* -o.*/\1/') input=$(echo $command | sed -e 's/.* \([^ ]*\) -o.*/\1/') |