Add absapath function since Solaris lacks it.

Tests still don't work due to ancient bash though.
This commit is contained in:
Paul Gardner-Stephen 2012-09-06 11:55:49 +09:30
parent 2ccbc54dc1
commit 2dfc056354

View File

@ -54,6 +54,12 @@
# }
# runTests "$@"
# abspath isn't available on Solaris
type abspath 2>/dev/null
if [ $? -ne 0 ]; then
abspath () { case "$1" in /*)printf "%s\n" "$1";; *)printf "%s\n" "$PWD/$1";; esac; }
fi
usage() {
echo -n "\
Usage: ${0##*/} [options] [--]