1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-28 16:23:15 +00:00
TiddlyWiki5/test.sh
Jeremy Ruston bc07764e40 Used stout.write() instead of console.log()
Because console.log() processes C/C++ printf() style markers such as
"%d", which happens to appear in the jQuery source code.
2011-11-26 11:18:39 +00:00

19 lines
613 B
Bash
Executable File

#!/bin/sh
# create a temporary directory if it doesn't already exist
mkdir -p tmp
# cook the recipe with the old cook.rb (assuming you have set it up as described in github.com/TiddlyWiki/cooker)
cook $PWD/test/data/tiddlywiki.com/index.html.recipe -d $PWD -o tmp/oldcooked.html || exit 1
# cook it with cook.js
node cook.js $PWD/test/data/tiddlywiki.com/index.html.recipe > tmp/newcooked.html || exit 1
# compare the two
opendiff tmp/oldcooked.html tmp/newcooked.html
# split the newly cooked tiddlywiki into tiddlers
mkdir -p tmp/tiddlers
rm -f tmp/tiddlers/*
node ginsu.js tmp/newcooked.html tmp/tiddlers