mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-12 11:23:51 +08:00
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 <jj@borkum.net> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 49180
This commit is contained in:
parent
ea6d36111b
commit
ca77367dae
@ -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)
|
$(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 CVS | $(XARGS) rm -rf
|
||||||
@-find $(TARGET_DIR) -name .svn | $(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
|
@-find $(TARGET_DIR) -name '.#*' | $(XARGS) rm -f
|
||||||
rm -f $(TARGET_DIR)/usr/lib/opkg/info/*.postinst*
|
rm -f $(TARGET_DIR)/usr/lib/opkg/info/*.postinst*
|
||||||
rm -f $(TARGET_DIR)/usr/lib/opkg/info/*.prerm*
|
rm -f $(TARGET_DIR)/usr/lib/opkg/info/*.prerm*
|
||||||
|
Loading…
Reference in New Issue
Block a user