Author: hauke
Date: 2016-04-17 14:50:30 +0200 (Sun, 17 Apr 2016)
New Revision: 49180

Modified:
   trunk/package/Makefile
Log:
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 <[email protected]>
Signed-off-by: Hauke Mehrtens <[email protected]>


Modified: trunk/package/Makefile
===================================================================
--- trunk/package/Makefile      2016-04-17 12:49:54 UTC (rev 49179)
+++ trunk/package/Makefile      2016-04-17 12:50:30 UTC (rev 49180)
@@ -123,6 +123,7 @@
        $(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*
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to