Skip to content

Instantly share code, notes, and snippets.

@nes1983
Created January 26, 2010 17:27
Show Gist options
  • Save nes1983/287022 to your computer and use it in GitHub Desktop.
Save nes1983/287022 to your computer and use it in GitHub Desktop.
TMPFILE=`(mktemp -t makertf.html)`
trap "rm -f '$TMPFILE'" 0 # EXIT
trap "rm -f '$TMPFILE'; exit 1" 2 # INT
trap "rm -f '$TMPFILE'; exit 1" 1 15 # HUP TERM
echo '<!DOCTYPE html> <meta charset="UTF-8"> <title>Stallman</title>' > $TMPFILE
MultiMarkdown.pl --html4tags press\ release.mdown >> $TMPFILE
textutil -convert rtf -output "press release.rtf" $TMPFILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment