aboutsummaryrefslogtreecommitdiff
path: root/0.8.0/ebuild/utils/canonicalise
diff options
context:
space:
mode:
Diffstat (limited to '0.8.0/ebuild/utils/canonicalise')
-rwxr-xr-x0.8.0/ebuild/utils/canonicalise6
1 files changed, 6 insertions, 0 deletions
diff --git a/0.8.0/ebuild/utils/canonicalise b/0.8.0/ebuild/utils/canonicalise
new file mode 100755
index 0000000..d070f34
--- /dev/null
+++ b/0.8.0/ebuild/utils/canonicalise
@@ -0,0 +1,6 @@
+#!/bin/bash
+case $(uname -s) in
+ FreeBSD) realpath $@ ;;
+ *) readlink -f $@ ;;
+esac
+