source: freewrt/tools/sed/sedcheck.sh@ 131a9d7

freewrt_1_0 freewrt_2_0
Last change on this file since 131a9d7 was 131a9d7, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

move tools like sed, trx, lzma, which does not belong to the toolchain (gcc,binutils,gdb,libc) to a separate directory, all stuff is compiled with the host compiler

git-svn-id: svn://www.freewrt.org/trunk/freewrt@194 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100755
File size: 312 bytes
Line 
1#!/bin/sh
2
3if [ -x /usr/bin/sed ]; then
4 SED="/usr/bin/sed";
5else
6 if [ -x /bin/sed ]; then
7 SED="/bin/sed";
8 fi;
9fi;
10
11echo "HELLO" > .sedtest
12$SED -i -e "s/HELLO/GOODBYE/" .sedtest >/dev/null 2>&1
13
14if [ $? != 0 ] ; then
15 echo build-sed-host-binary
16else
17 echo use-sed-host-binary
18fi;
19rm -f .sedtest
20
21
Note: See TracBrowser for help on using the repository browser.