summaryrefslogtreecommitdiff
path: root/package/network/utils/wwan/Makefile
diff options
context:
space:
mode:
authorSimon Hailes <btsimonh@googlemail.com>2016-10-11 20:30:15 +0100
committerJohn Crispin <john@phrozen.org>2016-10-26 15:16:51 +0200
commit86c6b07e15b25d1f6dbb7c0b1ef428c5c4c05395 (patch)
tree6334d029c74c350c6b67648d02e2877528edf27c /package/network/utils/wwan/Makefile
parenta2361eebfd5c000315cfb612b8ffb08c7c00ed17 (diff)
downloadmtk-20170518-86c6b07e15b25d1f6dbb7c0b1ef428c5c4c05395.zip
mtk-20170518-86c6b07e15b25d1f6dbb7c0b1ef428c5c4c05395.tar.gz
mtk-20170518-86c6b07e15b25d1f6dbb7c0b1ef428c5c4c05395.tar.bz2
wwan: 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/network/utils/wwan/Makefile')
-rw-r--r--package/network/utils/wwan/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/network/utils/wwan/Makefile b/package/network/utils/wwan/Makefile
index 10479d1..8ce9fd2 100644
--- a/package/network/utils/wwan/Makefile
+++ b/package/network/utils/wwan/Makefile
@@ -30,6 +30,16 @@ define Package/wwan/install
$(INSTALL_BIN) ./files/wwan.usbmisc $(1)/etc/hotplug.d/usbmisc/00_wwan.sh
$(INSTALL_DIR) $(1)/lib/network/wwan/
$(INSTALL_DATA) ./files/data/* $(1)/lib/network/wwan/
+ #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
+ shopt -s nullglob ; \
+ for filevar in $(1)/lib/network/wwan/*-* ; \
+ do \
+ FILENAME=$$$$(basename $$$$filevar) ; \
+ NEWNAME=$$$${FILENAME//-/:} ; \
+ mv "$(1)/lib/network/wwan/$$$$FILENAME" "$(1)/lib/network/wwan/$$$$NEWNAME" ; \
+ done
endef
$(eval $(call BuildPackage,wwan))