diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-03-31 20:18:54 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-03-31 20:18:54 +0200 |
commit | ac46bdeef28bc2b65e1880884a79257c28e423a7 (patch) | |
tree | 50b3bae39301c2ef89bbbabdb843a62d679e034e /scripts/reloc.sh | |
parent | 418fb3668f7140cc3e2ba07c354fe0d9bbb47d04 (diff) | |
parent | 84b90159b05aaa4e914ce51d2b1319218c32d8a1 (diff) |
fix conflict, autoseect libgcj
Diffstat (limited to 'scripts/reloc.sh')
-rwxr-xr-x | scripts/reloc.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/reloc.sh b/scripts/reloc.sh index f7a0a1e3b..59323612f 100755 --- a/scripts/reloc.sh +++ b/scripts/reloc.sh @@ -1,10 +1,11 @@ #!/usr/bin/env bash # execute this after relocation of adk directory -olddir=$(grep "^TOPDIR" prereq.mk |cut -d '=' -f 2) +olddir=$(grep "^TOPDIR" prereq.mk 2>/dev/null |cut -d '=' -f 2) newdir=$(pwd) -if [ "$olddir" != "$newdir" ];then +if [ ! -z $olddir ];then + if [ "$olddir" != "$newdir" ];then echo "adk directory relocated!" echo "old directory: $olddir" echo "new directory: $newdir" @@ -13,4 +14,5 @@ if [ "$olddir" != "$newdir" ];then sed -i -e "s#$olddir#$newdir#g" $(find target_*/scripts -type f|xargs) sed -i -e "s#$olddir#$newdir#" target_*/etc/ipkg.conf sed -i -e "s#$olddir#$newdir#" prereq.mk + fi fi |