Skip to content

Instantly share code, notes, and snippets.

@rightfold
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rightfold/7d4c1619c67d1b943493 to your computer and use it in GitHub Desktop.
Save rightfold/7d4c1619c67d1b943493 to your computer and use it in GitHub Desktop.
for f in doc/*.pod; do
h=${f%.pod}.html
pod2html --noindex $f \
| awk '/<body/ { p = 1; next } /<\/body>/ { p = 0; next } p { print }' \
> $h
cat template.html \
| sed -e '/<<<CONTENT>>>/{' -e 'r '$h -e 'd' -e '}' \
> $(basename $h);
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment