From 77dd9c466922fad94a8514f071a4bc87fc2ed0a9 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 31 Mar 2014 08:34:05 +0200 Subject: use gnu find on darwin --- scripts/find | 9 --------- scripts/scan-tools.sh | 16 ++++++++++------ scripts/xargs | 9 --------- 3 files changed, 10 insertions(+), 24 deletions(-) delete mode 100755 scripts/find delete mode 100755 scripts/xargs (limited to 'scripts') diff --git a/scripts/find b/scripts/find deleted file mode 100755 index ea38d92fb..000000000 --- a/scripts/find +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash -# This file is part of the OpenADK project. OpenADK is copyrighted -# material, please see the LICENCE file in the top-level directory. - -if [ -z "$(which gfind 2>/dev/null)" ];then - /usr/bin/find "$@" -else - gfind "$@" -fi diff --git a/scripts/scan-tools.sh b/scripts/scan-tools.sh index c9b8029d5..6f365cd13 100644 --- a/scripts/scan-tools.sh +++ b/scripts/scan-tools.sh @@ -247,16 +247,20 @@ fi host_build_findutils=0 if ! which gxargs >/dev/null 2>&1; then - if ! which xargs >/dev/null 2>&1; then - echo "No xargs found, will build one." - host_build_findutils=1 + if which xargs >/dev/null 2>&1; then + if ! xargs --version 2>/dev/null|grep GNU >/dev/null;then + echo "No GNU xargs found, will build one." + host_build_findutils=1 + fi fi fi if ! which gfind >/dev/null 2>&1; then - if ! which find >/dev/null 2>&1; then - echo "No find found, will build one." - host_build_findutils=1 + if which find >/dev/null 2>&1; then + if ! find --version 2>/dev/null|grep GNU >/dev/null;then + echo "No GNU find found, will build one." + host_build_findutils=1 + fi fi fi diff --git a/scripts/xargs b/scripts/xargs deleted file mode 100755 index cbe9bd015..000000000 --- a/scripts/xargs +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash -# This file is part of the OpenADK project. OpenADK is copyrighted -# material, please see the LICENCE file in the top-level directory. - -if [ -z "$(which gxargs 2>/dev/null)" ];then - /usr/bin/xargs "$@" -else - gxargs "$@" -fi -- cgit v1.2.3