hello!
as there is no global revision number in CVS it is sometimes important to
specify the date for CVS checkouts.
this patch adds support to CVS checkout based on date by setting a variable
PKG_SOURCE_DATE in the Makefile.
note: be careful with PKG_SOURCE_VERSION when using PKG_SOURCE_DATE, e.g.
PKG_SOURCE_VERSION:=HEAD and any PKG_SOURCE_DATE would result as a empty
checkout as HEAD is not a CVS branch - thats how CVS works ;(
bruno
Index: include/download.mk
===================================================================
--- include/download.mk (revision 630)
+++ include/download.mk (revision 638)
@@ -51,7 +51,7 @@
cd $(TMP_DIR)/dl && \
rm -rf $(SUBDIR) && \
[ \! -d $(SUBDIR) ] && \
- cvs -d $(URL) co -r $(VERSION) $(SUBDIR) && \
+ cvs -d $(URL) co $(if $(VERSION),-r $(VERSION)) $(if
$(PKG_SOURCE_DATE),-D $(PKG_SOURCE_DATE)) $(SUBDIR) && \
find $(SUBDIR) -name CVS | xargs rm -rf && \
echo "Packing checkout..." && \
$(call dl_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \
@@ -91,7 +91,7 @@
)
endef
-Validate/cvs=VERSION SUBDIR
+Validate/cvs=SUBDIR
Validate/svn=VERSION SUBDIR
Validate/git=VERSION SUBDIR
_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel