build system cleanup. move shared include files into $(TOPDIR)/include, move lzma...
[openwrt-10.03/.git] / toolchain / sed / sedcheck.sh
index 4d645b6ab0f7ac7a40cc75dad3d8c3ae265f5f69..5af1d886bd21b582118d1a79683d78c7cc298bd4 100755 (executable)
@@ -11,11 +11,20 @@ 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;
+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