diff options
author | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-01-16 11:43:02 +0000 |
---|---|---|
committer | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-01-16 11:43:02 +0000 |
commit | 3d80c3754b3421428b47f89ce26f07adf10e7501 (patch) | |
tree | 986493f1905c17f3a385831d60709492c4c5ed7a /openwrt/package/sed/sedcheck.sh | |
parent | f93f63a886f8fb0adcbc15fa0630e6ab9e7adc02 (diff) |
Initial revision
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@197 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/sed/sedcheck.sh')
-rwxr-xr-x | openwrt/package/sed/sedcheck.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/openwrt/package/sed/sedcheck.sh b/openwrt/package/sed/sedcheck.sh new file mode 100755 index 0000000000..4d645b6ab0 --- /dev/null +++ b/openwrt/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 + + |