1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-01 16:30:46 +00:00
TiddlyWiki5/test.sh

14 lines
473 B
Bash
Raw Normal View History

2011-11-22 14:29:29 +00:00
#!/bin/sh
# create a temporary directory if it doesn't already exist
mkdir -p tmp
2011-11-22 14:29:29 +00:00
# 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
2011-11-22 14:29:29 +00:00
# cook it with cook.js
node cook.js $PWD/test/data/tiddlywiki.com/index.html.recipe > tmp/newcooked.html || exit 1
2011-11-22 14:29:29 +00:00
# compare the two
opendiff tmp/oldcooked.html tmp/newcooked.html