cm: Add a wrapper script for Curl which acts like wget

* Lots of stuff in the wild actually uses wget, and Toybox doesn't
   provide it. We already have Curl which does the same thing just
   with some different arguments. This wrapper script can handle it.

Change-Id: Ic02da709fcd29808b96fabcd1ac4ddd9465f635f
This commit is contained in:
Steve Kondik
2015-11-14 23:56:10 +01:00
parent 8bc283d735
commit d91ddb53a8
3 changed files with 195 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
LOCAL_PATH := $(call my-dir)
# a wrapper for curl which provides wget syntax, for compatibility
include $(CLEAR_VARS)
LOCAL_MODULE := wget
LOCAL_SRC_FILES := bin/wget
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := EXECUTABLES
LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
include $(BUILD_PREBUILT)