From 426cbadfef6c26323faedcab2cd5ea7efa64d1bb Mon Sep 17 00:00:00 2001 From: roktas Date: Tue, 12 Dec 2006 07:04:09 +0000 Subject: Merge changes in branches/wrappers into trunk. [in trunk] svn merge -r105:HEAD \ https://pandoc.googlecode.com/svn/branches/wrappers git-svn-id: https://pandoc.googlecode.com/svn/trunk@177 788f1e2b-df1e-0410-8736-df70ead52e1b --- markdown2latex | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 markdown2latex (limited to 'markdown2latex') diff --git a/markdown2latex b/markdown2latex deleted file mode 100644 index 9fafbafa5..000000000 --- a/markdown2latex +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh -e -# converts markdown to latex - -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 -w latex -s | iconv -f utf-8 -- cgit v1.2.3