git.cweiske.de
/
grauphel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3eaf73a
)
Add command line tool to convert tombody notes to rST
author
Christian Weiske
<
[email protected]
>
Tue, 21 Jun 2016 07:48:01 +0000
(09:48 +0200)
committer
Christian Weiske
<
[email protected]
>
Tue, 21 Jun 2016 07:48:01 +0000
(09:48 +0200)
tools/convert.php
[new file with mode: 0755]
patch
|
blob
diff --git a/tools/convert.php
b/tools/convert.php
new file mode 100755
(executable)
index 0000000..
2f57d6a
--- /dev/null
+++ b/
tools/convert.php
@@ -0,0
+1,14
@@
+#!/usr/bin/env php
+<?php
+require 'lib/converter/base.php';
+require 'lib/converter/restructuredtext.php';
+
+if ($argc != 2) {
+ echo "Tomboy note file name missing\n";
+ exit(1);
+}
+
+$file = $argv[1];
+$conv = new \OCA\Grauphel\Converter\ReStructuredText();
+echo $conv->convert(file_get_contents($file));
+?>