diff options
Diffstat (limited to 'markdown2html')
-rw-r--r-- | markdown2html | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/markdown2html b/markdown2html deleted file mode 100644 index 285dd866a..000000000 --- a/markdown2html +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh -e -# converts markdown to HTML - -pathfind () { # portable which(1), code taken from Debian Developer's Reference - OLDIFS="$IFS" - IFS=: - for _p in $PATH; do - if [ -x "$_p/$*" ]; then - IFS="$OLDIFS" - return 0 - fi - done - IFS="$OLDIFS" - return 1 -} - -for p in pandoc; do - pathfind $p || { - echo >&2 "You need '$p' to use this program!" - exit 1 - } -done - -ALL="$*" -ARGS=${ALL%% -- *} # only the part before ' -- ' delimiters is relevant -set -- $ARGS - -REST=${ALL#$ARGS}; REST=${REST# -- } -PANDOC_OPTS=${REST:-$PANDOC_OPTS} - -iconv -t utf-8 $* | pandoc $PANDOC_OPTS | iconv -f utf-8 |