1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Introduced tmp/ directory for test artefacts

This commit is contained in:
Jeremy Ruston 2011-11-25 15:51:02 +00:00
parent f3554f1b29
commit 21e06b9833
2 changed files with 7 additions and 3 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
.DS_Store .DS_Store
tmp/

View File

@ -1,10 +1,13 @@
#!/bin/sh #!/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 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 oldcooked.html cook $PWD/test/data/tiddlywiki.com/index.html.recipe -d $PWD -o tmp/oldcooked.html || exit 1
# cook it with cook.js # cook it with cook.js
node cook.js $PWD/test/data/tiddlywiki.com/index.html.recipe > newcooked.html node cook.js $PWD/test/data/tiddlywiki.com/index.html.recipe > tmp/newcooked.html || exit 1
# compare the two # compare the two
opendiff oldcooked.html newcooked.html opendiff tmp/oldcooked.html tmp/newcooked.html