浏览代码

add a crlf workaround similar to the one from freewrt

SVN-Revision: 6507
Felix Fietkau 18 年之前
父节点
当前提交
bc60eb3610
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      include/unpack.mk

+ 3 - 0
include/unpack.mk

@@ -17,4 +17,7 @@ ifeq ($(strip $(PKG_UNPACK)),)
   else
     # try to autodetect file type
   endif
+  ifneq ($(strip $(CRLF_WORKAROUND)),)
+    PKG_UNPACK += && find $(PKG_BUILD_DIR) -type f -print0 | xargs -0 perl -pi -e 's!\r$$$$!!g'
+  endif
 endif