Changeset 343


Ignore:
Timestamp:
Sep 28, 2012, 2:36:44 AM (11 years ago)
Author:
ehem
Message:

Fix the files-copy target. This allows tar to handle everything, rather
than a shell loop (faster). This doesn't have problems with read-only
files. The timestamp file used in "clean" was wrong.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/contrib/openwrt/openwrt.mk

    r336 r343  
    121121
    122122openwrt/files-copy: openwrt/patch
    123         cd $(FILES_DIR_OPENWRT) && find -type f | while read f; do \
    124            mkdir -p $(OPENWRT_BUILD_DIR)/$$(dirname $$f); \
    125            cp -v $$f $(OPENWRT_BUILD_DIR)/$$(dirname $$f) ;\
    126         done
     123        tar -C $(FILES_DIR_OPENWRT) --exclude-vcs -cpf - . | \
     124          tar -C $(OPENWRT_BUILD_DIR) -xpf - && \
    127125        touch $@
    128126
     
    168166        rm -f openwrt/checkout
    169167        rm -f openwrt/patch
    170         rm -f openwrt/copy-files
     168        rm -f openwrt/files-copy
     169
Note: See TracChangeset for help on using the changeset viewer.