common Makefile.common,1.3,1.4
Cristian Gafton (gafton)
fedora-extras-commits at redhat.com
Wed Nov 24 02:17:33 UTC 2004
Changeset from: gafton
Update of /cvs/extras/common
In directory cvs.fedora.redhat.com:/tmp/cvs-serv10124
Modified Files:
Makefile.common
Log Message:
avoid uploading zero sized files
Index: Makefile.common
===================================================================
RCS file: /cvs/extras/common/Makefile.common,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Makefile.common 24 Nov 2004 01:22:32 -0000 1.3
+++ Makefile.common 24 Nov 2004 02:17:31 -0000 1.4
@@ -167,6 +167,7 @@
@if ! test -f ./sources ; then touch ./sources ; fi
@if ! test -f ./.cvsignore ; then touch ./.cvsignore ; fi
@for f in $(FILES); do \
+ if ! test -s $$f ; then echo "SKIPPING EMPTY FILE: $$f" ; continue ; fi ; \
b="$$(basename $$f)" ; \
m="$$(cd $$(dirname $$f) && md5sum $$b)" ; \
if test "$$m" = "$$(grep $$b sources)" ; then \
@@ -195,6 +196,7 @@
@rm -f sources && touch sources
@rm -f .cvsignore && touch .cvsignore
@for f in $(FILES); do \
+ if ! test -s $$f ; then echo "SKIPPING EMPTY FILE: $$f" ; continue ; fi ; \
b="$$(basename $$f)" ; \
m="$$(cd $$(dirname $$f) && md5sum $$b)" ; \
chmod +r $$f ; \
More information about the scm-commits
mailing list