git.iko.soy/typeable/pandoc
on master help sign in
Print command-line to stderr when making demo page.
7871400fiddlosopher
web/mkdemos.sh+1−1
@@ -42,7 +42,7 @@ for command in "$@"; do
42 input=$(echo $command | sed -e 's/.* \([^ ]*\) -o.*/\1/')
42 input=$(echo $command | sed -e 's/.* \([^ ]*\) -o.*/\1/')
43 output=$(echo $command | sed -e 's/.*-o \(.*\)/\1/')
43 output=$(echo $command | sed -e 's/.*-o \(.*\)/\1/')
44 echo "1. <code>$firstpart <a href=\""$input"\" title=\""View input file"\">$input</a> -o <a href=\""$output"\" title=\""View pandoc output"\">$output</a></code>"
44 echo "1. <code>$firstpart <a href=\""$input"\" title=\""View input file"\">$input</a> -o <a href=\""$output"\" title=\""View pandoc output"\">$output</a></code>"
45+ echo $command >&2
45 result=$($command) # run the command and create output file
46 result=$($command) # run the command and create output file
46− echo "Created $output." >&2
47done
47done
48
48