Changeset 417


Ignore:
Timestamp:
Oct 7, 2012, 3:14:49 AM (8 years ago)
Author:
ehem
Message:

If something is already present in a checkout area, try to salvage it if
we can (still nuke otherwise).

File:
1 edited

Legend:

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

    r412 r417  
    156156$(OPENWRT_BUILD_DIR)/.debwrt.checkout.stamp:
    157157openwrt/checkout: $(OPENWRT_BUILD_DIR)/.debwrt.checkout.stamp
     158        if [ "`svn info $(OPENWRT_BUILD_DIR) 2>/dev/null | grep ^URL:`" = "URL: $(OPENWRT_SUBVERSION)" ] ; \
     159        then \
     160                svn st --no-ignore $(OPENWRT_BUILD_DIR) | grep -e^\[\?I\] | cut -c9- | xargs rm -rf && \
     161                svn st $(OPENWRT_BUILD_DIR) | cut -c9- | xargs svn revert && \
     162                exit 0 ; \
     163        fi ; \
    158164        rm -rf $(OPENWRT_BUILD_DIR) && \
    159165        svn co -r $(OPENWRT_REVISION) $(OPENWRT_SUBVERSION) $(OPENWRT_BUILD_DIR) && \
Note: See TracChangeset for help on using the changeset viewer.