mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-24 09:16:43 +00:00
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:
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user