diff options
author | Peter Carbonetto | 2017-08-21 10:31:26 -0500 |
---|---|---|
committer | GitHub | 2017-08-21 10:31:26 -0500 |
commit | aea3d24c680778cf1691a8c2a76f3221e7f373d6 (patch) | |
tree | 8a1ba0770e2344469c58290d4192db186d9439cb /contrib/shunit2-2.0.3/lib | |
parent | 85797beb24da3d591a79fddcff4ab48d702b465f (diff) | |
parent | 2e76646998df0ca1b7d160329c0f3ac8cdda2fe0 (diff) | |
download | pangemma-aea3d24c680778cf1691a8c2a76f3221e7f373d6.tar.gz |
Merge pull request #73 from genenetwork/merge-checkK
Check K and added unit test framework.
Diffstat (limited to 'contrib/shunit2-2.0.3/lib')
-rw-r--r-- | contrib/shunit2-2.0.3/lib/sh/shlib | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/shunit2-2.0.3/lib/sh/shlib b/contrib/shunit2-2.0.3/lib/sh/shlib new file mode 100644 index 0000000..00aadcb --- /dev/null +++ b/contrib/shunit2-2.0.3/lib/sh/shlib @@ -0,0 +1,23 @@ +# $Id$ +# vim:syntax=sh +# +# library of shell functions +# + +shlib_relToAbsPath() +{ + _shlib_path=$1 + + # deal with paths that start with / + echo "${_shlib_path}" |grep '^/' >/dev/null 2>&1 + if [ $? -ne 0 ]; then + _shlib_pwd=`pwd` + _shlib_path="${_shlib_pwd}/${_shlib_path}" + unset _shlib_pwd + fi + + # clean up the path + echo "${_shlib_path}" |sed 's/[^/]*\/*\.\.\/*//g;s/\/\.\//\//' + + unset _shlib_path +} |