openwrtv3/openwrt/toolchain/sed/sedcheck.sh
Felix Fietkau 96930ce1ee add toolchain/download target
SVN-Revision: 4029
2006-06-20 23:49:23 +00:00

30 lines
421 B
Bash
Executable file

#!/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
case "$1" in
download)
if [ $? != 0 ] ; then
echo download-sed-binary
fi;
;;
*)
if [ $? != 0 ] ; then
echo build-sed-host-binary
else
echo use-sed-host-binary
fi;
;;
esac
rm -f .sedtest