aboutsummaryrefslogtreecommitdiff
path: root/wrappers
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2008-07-31 23:16:02 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2008-07-31 23:16:02 +0000
commitd072ad4b66b5cdf5a8f811ae1f78460e34270d58 (patch)
tree6f77dde12c4d5824434e0961f71c9f38f19be4cd /wrappers
parent504a61a97b9dbd0b55b2b06fd2c1f547d71a1fa1 (diff)
downloadpandoc-d072ad4b66b5cdf5a8f811ae1f78460e34270d58.tar.gz
Added 'odt' output option to pandoc:
Not a writer, but a module that inserts the output of the OpenDocument writer into an ODT archive. This replaces markdown2odt. + Added odt output option to Main.hs. + Added default for .odt output file. + Changed defaults so that .xml and .sgml aren't automatically DocBook. + Added odt writer to Text.Pandoc exports. + Added Text.Pandoc.ODT and included in pandoc.cabal. + Added reference.odt as data-file in pandoc.cabal. + Handle picture links in OpenDocument files using xml library. + Removed markdown2odt and references from Makefile, README, man. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1345 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'wrappers')
-rw-r--r--wrappers/markdown2odt.in41
1 files changed, 0 insertions, 41 deletions
diff --git a/wrappers/markdown2odt.in b/wrappers/markdown2odt.in
deleted file mode 100644
index e5b3f0212..000000000
--- a/wrappers/markdown2odt.in
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh -e
-
-REQUIRED="zip"
-SYNOPSIS="converts markdown-formatted text to ODT."
-
-### odtref.sh
-
-### common.sh
-
-### tempdir.sh
-
-if [ "$OUTPUT" = "-" ]; then
- firstinfile="$(echo $ARGS | sed -ne '1p')"
- firstinfilebase="${firstinfile%.*}"
- destname="${firstinfilebase:-stdin}.odt"
-else
- destname="$OUTPUT"
-fi
-
-(
- cp $REFERENCEODT $THIS_TEMPDIR/new.odt
- pandoc -s -r markdown -w opendocument "$@" -o $THIS_TEMPDIR/content.xml
- zip -9 -j $THIS_TEMPDIR/new.odt $THIS_TEMPDIR/content.xml
-) || exit $?
-
-is_target_exists=
-if [ -f "$destname" ]; then
- is_target_exists=1
- mv "$destname" "$destname~"
-fi
-
-mv -f $THIS_TEMPDIR/new.odt "$destname"
-
-errn "Created $destname"
-[ -z "$is_target_exists" ] || {
- errn " (previous file has been backed up as $destname~)"
-}
-
-err .
-
-