Browse files

Cook: added support for TW_TRUNKDIR environment to ck wrapper

This simplifies configuration by allowing a wrapper like the following
(e.g. in ~/bin), rather than having to mess with PATH and a customized
copy of ck:

    #!/usr/bin/env sh
    export TW_TRUNKDIR=$HOME/Dev/TiddlyWiki/svn.tiddlywiki.org
    $TW_TRUNKDIR/tools/cooker/bash/ck $@
  • Loading branch information...
1 parent 8b2e486 commit df7664286ebeb55f1def6f1b33f28b69be9093e8 FND committed Sep 25, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 bash/ck
View
2 bash/ck
@@ -1,5 +1,5 @@
#!/bin/bash
-TW_TRUNKDIR=$HOME/Documents/TiddlyWiki/Trunk
+TW_TRUNKDIR=${TW_TRUNKDIR:-$HOME/Documents/TiddlyWiki/Trunk}
DEFAULT_FILENAME=index
FILENAME=${1:-$DEFAULT_FILENAME}
FILENAME=${FILENAME%\.recipe}

0 comments on commit df76642

Please sign in to comment.