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
This commit is contained in:
parent
65c4fc2ad2
commit
333c0cc6b0
1 changed files with 1 additions and 1 deletions
2
tools/configure
vendored
2
tools/configure
vendored
|
@ -3092,7 +3092,7 @@ if [ "$ARG_RBDIR" ]; then
|
||||||
if [ "$need_full_path" = "yes" ]; then
|
if [ "$need_full_path" = "yes" ]; then
|
||||||
rbdir=`realpath $ARG_RBDIR`
|
rbdir=`realpath $ARG_RBDIR`
|
||||||
else # prepend '/' if needed
|
else # prepend '/' if needed
|
||||||
if [ -z `echo $ARG_RBDIR | grep -P '/.*'` ]; then
|
if [ -z `echo $ARG_RBDIR | grep '^/'` ]; then
|
||||||
rbdir="/"$ARG_RBDIR
|
rbdir="/"$ARG_RBDIR
|
||||||
else
|
else
|
||||||
rbdir=$ARG_RBDIR
|
rbdir=$ARG_RBDIR
|
||||||
|
|
Loading…
Reference in a new issue