+
+function canonicalize() {
+ local relpath=$( dirname $1 )
+ if [[ ! -d "$relpath" ]]; then
+ echo "$0: no such file or directory: $1"
+ return 1
+ fi
+
+ echo $(cd $relpath; pwd -P)/$(basename $1)
+ return 0
+}
+
+function sayStatus () { local _status=$?; if [[ $_status -eq 0 ]]; then say "Success"; else say "Failed"; fi; return $_status }