path: root/scripts/build
diff options
authorTitus von Boxberg <>2010-05-19 16:08:23 (GMT)
committerTitus von Boxberg <>2010-05-19 16:08:23 (GMT)
commit91381251a039e3cc2df3fa8bde2dcbe4f5cbafd7 (patch)
tree704f9aaaca764a60c634b15a092111f523be3e70 /scripts/build
parenta85fc6dcb76d70b9afab975798bcdb6263450f3b (diff)
build/ 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. Apply simpler test, after discussion with author and Arnaud LACOMBE on the ML.
Diffstat (limited to 'scripts/build')
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build/ b/scripts/build/
index 13239bf..555db36 100644
--- a/scripts/build/
+++ b/scripts/build/
@@ -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}"