aboutsummaryrefslogtreecommitdiff
path: root/twiki-to-tiki.sed
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-09-18 16:36:35 -0300
committerSilvio Rhatto <user@example.org>2014-09-18 16:36:35 -0300
commit0d9ff9ecbe486fa0efe89d079266f0d416d5067c (patch)
treeb5389e2506ea3dfda3d26b44e362656e13c89d8a /twiki-to-tiki.sed
downloadsedscripts-0d9ff9ecbe486fa0efe89d079266f0d416d5067c.tar.gz
sedscripts-0d9ff9ecbe486fa0efe89d079266f0d416d5067c.tar.bz2
Initial import
Diffstat (limited to 'twiki-to-tiki.sed')
-rwxr-xr-xtwiki-to-tiki.sed14
1 files changed, 14 insertions, 0 deletions
diff --git a/twiki-to-tiki.sed b/twiki-to-tiki.sed
new file mode 100755
index 0000000..d0fe2f5
--- /dev/null
+++ b/twiki-to-tiki.sed
@@ -0,0 +1,14 @@
+#!/bin/sed -f
+#
+# twiki-to-tiki.sed: formatting conversion
+# feedback: rhatto@riseup.net
+#
+
+s/^ \*/\*/
+s/---+++/\!\!\!/
+s/---++/\!\!\!/
+s/---+/\!/
+s/\*\([A-Za-z0-9]*\)\*/__\1__/g
+s/<verbatim>/~pp\~/g
+s/<\/verbatim>/~\/pp\~/g
+s/%TOC%/{maketoc}/