summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorSimon Hailes <btsimonh@googlemail.com>2016-10-11 19:01:21 +0100
committerJohn Crispin <john@phrozen.org>2016-10-26 15:16:51 +0200
commita2361eebfd5c000315cfb612b8ffb08c7c00ed17 (patch)
treed50b513a70c3ca9b2738e0cab9b7ab792dacb9ed /package
parentc5a7e2c2fb39ea32ce31e20d02a571b546531f1c (diff)
downloadmtk-20170518-a2361eebfd5c000315cfb612b8ffb08c7c00ed17.zip
mtk-20170518-a2361eebfd5c000315cfb612b8ffb08c7c00ed17.tar.gz
mtk-20170518-a2361eebfd5c000315cfb612b8ffb08c7c00ed17.tar.bz2
usbmode: rename data files
This is to ensure that git can be cloned onto a windows drive without failing. Signed-off-by: Simon Hailes <btsimonh@googlemail.com>
Diffstat (limited to 'package')
-rw-r--r--package/utils/usbmode/Makefile11
-rw-r--r--package/utils/usbmode/data/12d1-1f16 (renamed from package/utils/usbmode/data/12d1:1f16)0
2 files changed, 11 insertions, 0 deletions
diff --git a/package/utils/usbmode/Makefile b/package/utils/usbmode/Makefile
index 6737b5f..d835d37 100644
--- a/package/utils/usbmode/Makefile
+++ b/package/utils/usbmode/Makefile
@@ -45,6 +45,17 @@ define Build/Prepare
rm -f \
$(PKG_BUILD_DIR)/$(PKG_DATA_PATH)/usb_modeswitch.d/05c6:1000:sVe=GT
cp ./data/* $(PKG_BUILD_DIR)/$(PKG_DATA_PATH)/usb_modeswitch.d/
+ #in order to keep the Lede GIT repo free of filenames with colons,
+ #we name the files xxxx-yyyy
+ # and rename here after copying to the build directory
+ for filevar in $(PKG_BUILD_DIR)/$(PKG_DATA_PATH)/usb_modeswitch.d/*-* ; \
+ do \
+ [ -f "$$$$filevar" ] || continue ; \
+ FILENAME=$$$$(basename $$$$filevar) ; \
+ NEWNAME=$$$${FILENAME//-/:} ; \
+ rm "$(PKG_BUILD_DIR)/$(PKG_DATA_PATH)/usb_modeswitch.d/$$$$NEWNAME" ; \
+ mv "$(PKG_BUILD_DIR)/$(PKG_DATA_PATH)/usb_modeswitch.d/$$$$FILENAME" "$(PKG_BUILD_DIR)/$(PKG_DATA_PATH)/usb_modeswitch.d/$$$$NEWNAME" ; \
+ done
endef
define Package/usb-modeswitch/install
diff --git a/package/utils/usbmode/data/12d1:1f16 b/package/utils/usbmode/data/12d1-1f16
index beda01f..beda01f 100644
--- a/package/utils/usbmode/data/12d1:1f16
+++ b/package/utils/usbmode/data/12d1-1f16