aboutsummaryrefslogtreecommitdiff
path: root/scripts/wrapper.in
diff options
context:
space:
mode:
authorTitus von Boxberg <titus@v9g.de>2010-05-17 12:27:32 +0200
committerTitus von Boxberg <titus@v9g.de>2010-05-17 12:27:32 +0200
commit98e75760247c424bc7e62b4348618a274c5c2225 (patch)
tree93fa2185eadb03677b692ab0b04efcf499c183cb /scripts/wrapper.in
parent82af5a5d7bb3471ab7dd7cca2885b71f929dc3b0 (diff)
downloadcrosstool-ng-98e75760247c424bc7e62b4348618a274c5c2225.tar.gz
crosstool-ng-98e75760247c424bc7e62b4348618a274c5c2225.tar.bz2
crosstool-ng-98e75760247c424bc7e62b4348618a274c5c2225.zip
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/wrapper.in')
-rw-r--r--scripts/wrapper.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/wrapper.in b/scripts/wrapper.in
index 1c501ebf..b4dfc97a 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}")"