diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2010-09-30 23:09:39 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-09-30 23:09:39 +0200 |
commit | d0c3d1cf4365a80ba2ec35eef0c3ed7ac907f320 (patch) | |
tree | 5a0fb23dd1ca87094957e5b639b9e1a91fcf4e57 /toolchain/dependencies/check-host-sed.sh | |
parent | 57bc22c6b7ebef4b8b203dce6af4966ed719acef (diff) | |
download | buildroot-novena-d0c3d1cf4365a80ba2ec35eef0c3ed7ac907f320.tar.gz buildroot-novena-d0c3d1cf4365a80ba2ec35eef0c3ed7ac907f320.zip |
sed: get rid of host-sed variant
And all the infrastructure surrounding it. A broken sed implementation
is quite rare nowadays, as seen by the fact that the current host-sed
support has been broken for a while, so just get rid of it.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'toolchain/dependencies/check-host-sed.sh')
-rwxr-xr-x | toolchain/dependencies/check-host-sed.sh | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/toolchain/dependencies/check-host-sed.sh b/toolchain/dependencies/check-host-sed.sh deleted file mode 100755 index ed9a1d4db..000000000 --- a/toolchain/dependencies/check-host-sed.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh - -SEDLIST="/usr/bin/sed /bin/sed sed gnused gsed" - -for SED in $SEDLIST -do - if ! test -x $SED ; then - SED=$(which $SED 2> /dev/null) - if ! test -x "$SED" > /dev/null ; then - SED="" - continue - fi - fi - - tmp=$(mktemp) - echo "HELLO" > $tmp - $SED -i -e "s/HELLO/GOODBYE/" $tmp >/dev/null 2>&1 - RESULT=$(cat $tmp) - - if test $? != 0 ; then - SED="" - elif test -e ".sedtest-e" ; then - rm -f ".sedtest-e" - SED="" - elif [ "x$RESULT" = "x" ] || [ "$RESULT" != "GOODBYE" ] > /dev/null ; - then - SED="" - fi - - rm -f $tmp - if [ ! -z "$SED" ] ; then - break - fi -done -echo $SED |