git.iko.soy/typeable/pandoc
on master help sign in
Fixed a bug in website generation, which only worked if 'pandoc'

and the wrappers had been installed. git-svn-id: https://pandoc.googlecode.com/svn/trunk@402 788f1e2b-df1e-0410-8736-df70ead52e1b

commitbcc608f3fdee8a7d6258d87ee41ff72601a6026a authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateTue 2 Jan 2007, 05:02 (20 years ago) parent339fcbb
2 files changed+2−3
Makefile+1−1 web/mkdemos.sh+1−2
Makefile+1−1
@@ -374,7 +374,7 @@ $(web_dest)/: $(MAIN) html
374374 cp $(web_src)/S5DEMO $(web_dest)/ ; \
375375 cp $(web_src)/header.html $(web_dest)/ ; \
376376 cp $(web_src)/footer.html $(web_dest)/ ; \
377− sh $(web_src)/mkdemos.sh $(web_dest) $(abspath .) | \
377+ sh $(web_src)/mkdemos.sh $(web_dest) $(shell pwd) | \
378378 $(make_page) > $(web_dest)/examples.html; \
379379 ) || { rm -rf $(web_dest); exit 1; }
380380
web/mkdemos.sh+1−2
@@ -27,7 +27,6 @@ set -- $EXAMPLES
2727IFS=$oldifs
2828
2929cd $DEST
30−PATH=$PROGPATH:$PATH
3130
3231echo '% Pandoc examples
3332
@@ -44,6 +43,6 @@ for command in "$@"; do
4443 output=$(echo $command | sed -e 's/.*-o \(.*\)/\1/')
4544 echo "1. <code>$firstpart <a href=\""$input"\" title=\""View input file"\">$input</a> -o <a href=\""$output"\" title=\""View pandoc output"\">$output</a></code>"
4645 echo $command >&2
47− result=$($command) # run the command and create output file
46+ result=$(PATH=$PROGPATH:$PATH $command) # run the command and create output file
4847done
4948