summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTitus von Boxberg <titus@v9g.de>2010-05-17 10:27:32 (GMT)
committerTitus von Boxberg <titus@v9g.de>2010-05-17 10:27:32 (GMT)
commit98e75760247c424bc7e62b4348618a274c5c2225 (patch)
tree93fa2185eadb03677b692ab0b04efcf499c183cb /scripts
parent82af5a5d7bb3471ab7dd7cca2885b71f929dc3b0 (diff)
scripts/wrapper.in: Add a comment about readlink not being portable.
Documented that the call to readlink will not work on BSD systems.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/wrapper.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/wrapper.in b/scripts/wrapper.in
index 1c501eb..b4dfc97 100644
--- a/scripts/wrapper.in
+++ b/scripts/wrapper.in
@@ -1,5 +1,10 @@
#!/bin/sh
+# this wrapper will not work under BSD systems or others
+# not containig the GNU readlink.
+# Under those, wrapper.c will forcibly be used
+# regardless of the config file setting.
+
canonicalizedname=$(readlink -nm "${0}")
dirname="$(dirname "${canonicalizedname}")"
basename="$(basename "${canonicalizedname}")"