From: nbd Date: Sun, 4 Mar 2007 16:27:11 +0000 (+0000) Subject: add a crlf workaround similar to the one from freewrt X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=commitdiff_plain;h=0c97f1fe58f63b522438b1e6ea1dbe3cf329a763 add a crlf workaround similar to the one from freewrt git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6507 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/include/unpack.mk b/include/unpack.mk index e533476b5..7813e3b3d 100644 --- a/include/unpack.mk +++ b/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