From: Hauke Mehrtens Date: Sun, 17 Apr 2016 12:50:30 +0000 (+0000) Subject: package: remove .git files from images X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=bd376156f677665a4422888fdc259411233f0e65;hp=357a7a6c3d8be144e3b98e86dc0bdbea18ffe035 package: remove .git files from images If you have your ./files/ directory stored in a git repository, the .git will be included into images using precious space. This patch removes .git directories before packing images. Signed-off-by: Joerg Jungermann Signed-off-by: Hauke Mehrtens SVN-Revision: 49180 --- diff --git a/package/Makefile b/package/Makefile index c97e2c18d1..e0bd75ba7f 100644 --- a/package/Makefile +++ b/package/Makefile @@ -123,6 +123,7 @@ $(curdir)/install: $(TMP_DIR)/.build $(curdir)/system/opkg/host/install $(if $(SOURCE_DATE_EPOCH),sed -i "s/Installed-Time: .*/Installed-Time: $(SOURCE_DATE_EPOCH)/" $(TARGET_DIR)/usr/lib/opkg/status) @-find $(TARGET_DIR) -name CVS | $(XARGS) rm -rf @-find $(TARGET_DIR) -name .svn | $(XARGS) rm -rf + @-find $(TARGET_DIR) -name .git | $(XARGS) rm -rf @-find $(TARGET_DIR) -name '.#*' | $(XARGS) rm -f rm -f $(TARGET_DIR)/usr/lib/opkg/info/*.postinst* rm -f $(TARGET_DIR)/usr/lib/opkg/info/*.prerm*