summaryrefslogtreecommitdiffstats
path: root/config.tests
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2014-11-28 14:24:53 +0100
committerOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2015-02-05 14:26:34 +0000
commitf40760789701a81139f7a618da4ea6ca764c269f (patch)
treee290fc47457b7c30da0b8baa14469299fdfe27b2 /config.tests
parenta07fd165f34167c2b2e1cc4ea03ba8b82ebedc34 (diff)
simplify absolute unix path detection
use the posix builtin that is used two lines down as well instead of sed with platform-specific options. Change-Id: I439f79554d883564150004c1f7b6d8655a0ef192 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'config.tests')
-rwxr-xr-xconfig.tests/unix/makeabs9
1 files changed, 1 insertions, 8 deletions
diff --git a/config.tests/unix/makeabs b/config.tests/unix/makeabs
index d2f65d19e9..f1d8a4056f 100755
--- a/config.tests/unix/makeabs
+++ b/config.tests/unix/makeabs
@@ -2,14 +2,7 @@
FILE="$1"
RES="$FILE"
-
-CUT_ARG="-b1"
-if [ `uname -s` = "QNX" ]; then
- # QNX does not understand "-b1"
- CUT_ARG="-c1"
-fi
-
-if [ `echo $FILE | cut $CUT_ARG` = "/" ]; then
+if [ -z "${FILE##/*}" ]; then
true
elif [ "$OSTYPE" = "msys" -a -z "${FILE##[a-zA-Z]:[/\\]*}" ]; then
true