[csw-devel] SF.net SVN: gar:[9023] csw/mgar/gar/v2/gar.mk

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Mon Mar 8 16:28:33 CET 2010


Revision: 9023
          http://gar.svn.sourceforge.net/gar/?rev=9023&view=rev
Author:   dmichelsen
Date:     2010-03-08 15:28:33 +0000 (Mon, 08 Mar 2010)

Log Message:
-----------
mGAR v2: Fix makesum on empty targets

Modified Paths:
--------------
    csw/mgar/gar/v2/gar.mk

Modified: csw/mgar/gar/v2/gar.mk
===================================================================
--- csw/mgar/gar/v2/gar.mk	2010-03-08 15:12:24 UTC (rev 9022)
+++ csw/mgar/gar/v2/gar.mk	2010-03-08 15:28:33 UTC (rev 9023)
@@ -361,10 +361,12 @@
 MAKESUM_TARGETS =  $(filter-out $(_NOCHECKSUM) $(NOCHECKSUM),$(ALLFILES))
 
 makesum: fetch $(addprefix $(DOWNLOADDIR)/,$(MAKESUM_TARGETS)) $(GARCHIVE_TARGETS)
-	@if test "x$(MAKESUM_TARGETS)" != "x "; then \
+	@if test "x$(MAKESUM_TARGETS)" != "x"; then \
 		(cd $(DOWNLOADDIR) && gmd5sum $(MAKESUM_TARGETS)) > $(CHECKSUM_FILE) ; \
 		echo "Checksums made for $(MAKESUM_TARGETS)" ; \
 		cat $(CHECKSUM_FILE) ; \
+	else \
+		cp /dev/null $(CHECKSUM_FILE) ; \
 	fi
 
 # I am always typing this by mistake


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