From 1ca99c8bcfa96041185848b2efef6953189f503f Mon Sep 17 00:00:00 2001 From: Mike Baker Date: Sun, 16 Jan 2005 11:43:02 +0000 Subject: Initial revision git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@197 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/sed/sedcheck.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 package/sed/sedcheck.sh (limited to 'package/sed/sedcheck.sh') diff --git a/package/sed/sedcheck.sh b/package/sed/sedcheck.sh new file mode 100755 index 0000000000..4d645b6ab0 --- /dev/null +++ b/package/sed/sedcheck.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +if [ -x /usr/bin/sed ]; then + SED="/usr/bin/sed"; +else + if [ -x /bin/sed ]; then + SED="/bin/sed"; + fi; +fi; + +echo "HELLO" > .sedtest +$SED -i -e "s/HELLO/GOODBYE/" .sedtest >/dev/null 2>&1 + +if [ $? != 0 ] ; then + echo build-sed-host-binary +else + echo use-sed-host-binary +fi; +rm -f .sedtest + + -- cgit v1.2.3