Make database.xml valid
[grauphel.git] / tools / convert.php
1 #!/usr/bin/env php
2 <?php
3 require 'lib/converter/base.php';
4 require 'lib/converter/restructuredtext.php';
5
6 if ($argc != 2) {
7     echo "Tomboy note file name missing\n";
8     exit(1);
9 }
10
11 $file = $argv[1];
12 $conv = new \OCA\Grauphel\Converter\ReStructuredText();
13 echo $conv->convert(file_get_contents($file));
14 ?>