diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-08-04 13:15:02 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-08-06 09:15:23 +0200 |
commit | 062c92e812d1550cd416aaf2fa67013d2020daec (patch) | |
tree | e3d6308517fbe8cc59a59029181fce5b6552f97e /scripts/scan-tools.sh | |
parent | 289f3efaa923b78ebda9f40a973a0789781557db (diff) |
fix tar build, when gnu tar is missing
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Diffstat (limited to 'scripts/scan-tools.sh')
-rw-r--r-- | scripts/scan-tools.sh | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/scripts/scan-tools.sh b/scripts/scan-tools.sh index d2ed0e2f2..74c4f90c5 100644 --- a/scripts/scan-tools.sh +++ b/scripts/scan-tools.sh @@ -113,12 +113,6 @@ if [[ $X != *@(Native compiler works)* ]]; then fi rm test 2>/dev/null -if ! which tar >/dev/null 2>&1; then - echo You must install tar to continue. - echo - out=1 -fi - if ! which gzip >/dev/null 2>&1; then echo You must install gzip to continue. echo @@ -235,10 +229,12 @@ if ! which pkgconf >/dev/null 2>&1; then fi host_build_tar=0 -if ! which tar >/dev/null 2>&1; then +if which tar >/dev/null 2>&1; then if ! tar --version 2>/dev/null|grep GNU >/dev/null;then host_build_tar=1 fi +else + host_build_tar=1 fi host_build_findutils=0 |