aboutsummaryrefslogtreecommitdiff
path: root/markdown2latex
diff options
context:
space:
mode:
authorroktas <roktas@788f1e2b-df1e-0410-8736-df70ead52e1b>2006-12-12 07:04:09 +0000
committerroktas <roktas@788f1e2b-df1e-0410-8736-df70ead52e1b>2006-12-12 07:04:09 +0000
commit426cbadfef6c26323faedcab2cd5ea7efa64d1bb (patch)
treee16afb28eec790226a7b0524b8fb325594232e5c /markdown2latex
parent6411ea7466f67f94816c541a22abb7249d36c377 (diff)
downloadpandoc-426cbadfef6c26323faedcab2cd5ea7efa64d1bb.tar.gz
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
Diffstat (limited to 'markdown2latex')
-rw-r--r--markdown2latex31
1 files changed, 0 insertions, 31 deletions
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