summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2010-08-20 20:07:50 +0000
committerJens Arnold <amiconn@rockbox.org>2010-08-20 20:07:50 +0000
commit333c0cc6b01a7e298f983c43339dc5eb9fef7019 (patch)
tree234629894a1811709724fb435c791df5469fc5ad /tools
parent65c4fc2ad2ebf7693d1c1eca159652cdc2b7cb33 (diff)
downloadrockbox-333c0cc6b01a7e298f983c43339dc5eb9fef7019.tar.gz
rockbox-333c0cc6b01a7e298f983c43339dc5eb9fef7019.zip
Fix configure to always prepend a missing leading '/'. Also don't require perl regexp support as it's not necessary and not all grep installations support it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27848 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/configure b/tools/configure
index 209ef4c746..7c61b09ee7 100755
--- a/tools/configure
+++ b/tools/configure
@@ -3092,7 +3092,7 @@ if [ "$ARG_RBDIR" ]; then
if [ "$need_full_path" = "yes" ]; then
rbdir=`realpath $ARG_RBDIR`
else # prepend '/' if needed
- if [ -z `echo $ARG_RBDIR | grep -P '/.*'` ]; then
+ if [ -z `echo $ARG_RBDIR | grep '^/'` ]; then
rbdir="/"$ARG_RBDIR
else
rbdir=$ARG_RBDIR