[PATCH 7 of 9] scripts/wrapper.in: Add a comment about readlink not being portable
Titus von Boxberg
titus@v9g.de
Mon May 17 12:29:00 GMT 2010
# HG changeset patch
# User Titus von Boxberg <titus@v9g.de>
# Date 1274092052 -7200
# Node ID 2294caf59a704064059a1a9c66c75b0708ac0409
# Parent 193c8b8e4b7adab64c33016293b809197084af12
scripts/wrapper.in: Add a comment about readlink not being portable.
Documented that the call to readlink will not work on BSD systems.
diff -r 193c8b8e4b7a -r 2294caf59a70 scripts/wrapper.in
--- a/scripts/wrapper.in Mon May 17 12:23:24 2010 +0200
+++ b/scripts/wrapper.in Mon May 17 12:27:32 2010 +0200
@@ -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}")"
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list