[csw-devel] SF.net SVN: gar:[2423] csw/mgar/gar/v1/gar.lib.mk
wbonnet at users.sourceforge.net
wbonnet at users.sourceforge.net
Mon Dec 1 23:48:53 CET 2008
Revision: 2423
http://gar.svn.sourceforge.net/gar/?rev=2423&view=rev
Author: wbonnet
Date: 2008-12-01 22:48:53 +0000 (Mon, 01 Dec 2008)
Log Message:
-----------
Add warning when the upstream url is invalid
Modified Paths:
--------------
csw/mgar/gar/v1/gar.lib.mk
Modified: csw/mgar/gar/v1/gar.lib.mk
===================================================================
--- csw/mgar/gar/v1/gar.lib.mk 2008-12-01 20:26:45 UTC (rev 2422)
+++ csw/mgar/gar/v1/gar.lib.mk 2008-12-01 22:48:53 UTC (rev 2423)
@@ -156,25 +156,38 @@
fi; \
fi
-
check-upstream:
@if [ -n '$(FILES2CHECK)' ]; then \
NEW_FILES=""; \
+ PACKAGE_UP_TO_DATE=0; \
for FILE in $(FILES2CHECK) ""; do \
[ -n "$$FILE" ] || continue; \
- if test -f $(COOKIEDIR)/checknew-$$FILE || echo $(DISTFILES) | grep -w $$FILE >/dev/null; then \
- : ; \
+ if test -f $(COOKIEDIR)/checknew-$$FILE ; then \
+ PACKAGE_UP_TO_DATE=1; \
else \
- NEW_FILES="$$FILE $$NEW_FILES"; \
+ if echo $(DISTFILES) | grep -w $$FILE >/dev/null; then \
+ PACKAGE_UP_TO_DATE=1; \
+ echo "$(GARNAME) : Package is up-to-date. Current version is $$FILE" ; \
+ else \
+ NEW_FILES="$$FILE $$NEW_FILES"; \
+ fi; \
fi; \
$(MAKE) checknew-$$FILE >/dev/null; \
done; \
if test -z "$$NEW_FILES" ; then \
if [ ! -n '$(UFILES_REGEX)' ]; then \
- echo "$(GARNAME): Warning UFILES_REGEX is not set : $(UFILES_REGEX)" ; \
+ echo "$(GARNAME) : Warning UFILES_REGEX is not set : $(UFILES_REGEX)" ; \
+ else \
+ if [ "$$PACKAGE_UP_TO_DATE" -eq "0" ]; then \
+ echo "$(GARNAME) : Warning no files to check ! $(FILES2CHECK)" ; \
+ echo "$(GARNAME) : UPSTREAM_MASTER_SITES is $(UPSTREAM_MASTER_SITES)" ; \
+ echo "$(GARNAME) : DISTNAME is $(DISTNAME)" ; \
+ echo "$(GARNAME) : UFILES_REGEX is : $(UFILES_REGEX)" ; \
+ echo "$(GARNAME) : Please check configuration" ; \
+ fi; \
fi; \
else \
- echo "$(GARNAME): new upstream files available: $$NEW_FILES"; \
+ echo "$(GARNAME) : new upstream files available: $$NEW_FILES"; \
fi; \
fi
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list