# HG changeset patch # User Titus von Boxberg # Date 1274285303 -7200 # Node ID 7d3e9e91dd9ac8511deceb15c5f5a01703d43b10 # Parent acae437fddccd7681c93a3b6c999c0796693d625 build/internals.sh: Replace nonportable call to stat The call to stat to find out if a file is a symlink works only on GNU systems, and the replacing portable call to readlink is also shorter and more concise code. yann.morin.1998@anciens.enib.fr: Apply simpler test, after discussion with author and Arnaud LACOMBE on the ML. diff -r acae437fddcc -r 7d3e9e91dd9a scripts/build/internals.sh --- a/scripts/build/internals.sh Wed May 19 18:17:39 2010 +0200 +++ b/scripts/build/internals.sh Wed May 19 18:08:23 2010 +0200 @@ -68,7 +68,7 @@ # scripts, we don't know if they would in the end spawn a binary... # Just skip symlinks for _t in "${CT_TARGET}-"*; do - if [ "$( LANG=C stat -c '%F' "${_t}" )" != "symbolic link" ]; then + if [ ! -L "${_t}" ]; then CT_DoExecLog ALL mv "${_t}" ".${_t}" CT_DoExecLog ALL ln ".${CT_TARGET}-wrapper" "${_t}" fi