summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTitus von Boxberg <titus@v9g.de>2010-05-19 16:08:23 (GMT)
committerTitus von Boxberg <titus@v9g.de>2010-05-19 16:08:23 (GMT)
commit91381251a039e3cc2df3fa8bde2dcbe4f5cbafd7 (patch)
tree704f9aaaca764a60c634b15a092111f523be3e70 /scripts
parenta85fc6dcb76d70b9afab975798bcdb6263450f3b (diff)
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')
-rw-r--r--scripts/build/internals.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh
index 13239bf..555db36 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