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
This commit is contained in:
fiddlosopher
2007-01-02 05:02:01 +00:00
parent 339fcbbb46
commit bcc608f3fd
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -374,7 +374,7 @@ $(web_dest)/: $(MAIN) html
cp $(web_src)/S5DEMO $(web_dest)/ ; \
cp $(web_src)/header.html $(web_dest)/ ; \
cp $(web_src)/footer.html $(web_dest)/ ; \
sh $(web_src)/mkdemos.sh $(web_dest) $(abspath .) | \
sh $(web_src)/mkdemos.sh $(web_dest) $(shell pwd) | \
$(make_page) > $(web_dest)/examples.html; \
) || { rm -rf $(web_dest); exit 1; }
+1 -2
View File
@@ -27,7 +27,6 @@ set -- $EXAMPLES
IFS=$oldifs
cd $DEST
PATH=$PROGPATH:$PATH
echo '% Pandoc examples
@@ -44,6 +43,6 @@ for command in "$@"; do
output=$(echo $command | sed -e 's/.*-o \(.*\)/\1/')
echo "1. <code>$firstpart <a href=\""$input"\" title=\""View input file"\">$input</a> -o <a href=\""$output"\" title=\""View pandoc output"\">$output</a></code>"
echo $command >&2
result=$($command) # run the command and create output file
result=$(PATH=$PROGPATH:$PATH $command) # run the command and create output file
done