From 6ada78daa25632eb7829dc586f3ee61166e40ffc Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sat, 25 May 2013 16:41:25 +0100 Subject: [PATCH] Add a batch file for splitting a TW file into tiddlers --- ginsu.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 ginsu.sh diff --git a/ginsu.sh b/ginsu.sh new file mode 100755 index 000000000..6cf457811 --- /dev/null +++ b/ginsu.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# Split the tiddlers out of a TiddlyWiki file + +mkdir -p tmp +mkdir -p tmp/ginsu + +node ./tiddlywiki.js \ + ./editions/empty \ + --verbose \ + --load $1 \ + --savetiddlers [!is[system]] $:/core/templates/tid-tiddler tmp/ginsu text/plain .tid \ + || exit 1