diff options
author | Titus von Boxberg <titus@v9g.de> | 2010-05-19 18:08:23 +0200 |
---|---|---|
committer | Titus von Boxberg <titus@v9g.de> | 2010-05-19 18:08:23 +0200 |
commit | 91381251a039e3cc2df3fa8bde2dcbe4f5cbafd7 (patch) | |
tree | 704f9aaaca764a60c634b15a092111f523be3e70 /scripts/build/internals.sh | |
parent | a85fc6dcb76d70b9afab975798bcdb6263450f3b (diff) | |
download | crosstool-ng-91381251a039e3cc2df3fa8bde2dcbe4f5cbafd7.tar.gz crosstool-ng-91381251a039e3cc2df3fa8bde2dcbe4f5cbafd7.tar.bz2 crosstool-ng-91381251a039e3cc2df3fa8bde2dcbe4f5cbafd7.zip |
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.
Diffstat (limited to 'scripts/build/internals.sh')
-rw-r--r-- | scripts/build/internals.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh index 13239bfc..555db36d 100644 --- a/scripts/build/internals.sh +++ b/scripts/build/internals.sh @@ -68,7 +68,7 @@ do_finish() { # 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 |