diff options
author | Ben Brown <ben.brown@codethink.co.uk> | 2013-10-24 13:57:01 +0100 |
---|---|---|
committer | Ben Brown <ben.brown@codethink.co.uk> | 2013-10-24 13:57:01 +0100 |
commit | 5b704bb1c1c826891897dee156edb58e2f5c197a (patch) | |
tree | 9ca3801b8fc6c016b08bf7c00fe5b6f957024d9b /yarns/tbdiff.shell-lib | |
parent | 2fdfa3149be9ae43fb23cda6459e841fb3a90698 (diff) | |
parent | 085e620e5f5d0f85a8012785c89604ffa1a598d4 (diff) | |
download | tbdiff-5b704bb1c1c826891897dee156edb58e2f5c197a.tar.gz |
Merge branch 'benbrown/yarns'
Diffstat (limited to 'yarns/tbdiff.shell-lib')
-rw-r--r-- | yarns/tbdiff.shell-lib | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/yarns/tbdiff.shell-lib b/yarns/tbdiff.shell-lib new file mode 100644 index 0000000..658efe6 --- /dev/null +++ b/yarns/tbdiff.shell-lib @@ -0,0 +1,14 @@ +# Shell library for tbdiff yarns. +# +# The shell functions in this library are meant to make writing IMPLEMENTS +# sections for yarn scenario tests easier. + +# Currently, yarn isn't setting $SRCDIR to point at the project source +# directory. We simulate this here. + +{ + set +u + if [ -z "$SRCDIR" ]; then + export SRCDIR="$(pwd)" + fi +} |