devel/common Makefile.common,1.52,1.53
Jeremy Katz (katzj)
fedora-extras-commits at redhat.com
Fri May 4 15:37:16 UTC 2007
Author: katzj
Update of /cvs/pkgs/devel/common
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30282
Modified Files:
Makefile.common
Log Message:
add support for copying common files rather than downloading over and over.
pulled over from internal Makefile.common by request of davej
Index: Makefile.common
===================================================================
RCS file: /cvs/pkgs/devel/common/Makefile.common,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- Makefile.common 3 May 2007 21:36:56 -0000 1.52
+++ Makefile.common 4 May 2007 15:36:38 -0000 1.53
@@ -152,6 +152,13 @@
$(SOURCEFILES): #FORCE
@mkdir -p $(SOURCEDIR)
@echo "Downloading $@..."
+ @for i in `find ../ -maxdepth 2 -name "$@"`; do \
+ if test "$$(md5sum $$i | awk '{print $$1}')" = "$(get_sources_md5)" ; then \
+ echo "Copying from $$i" ; \
+ ln $$i $@ ; \
+ break ; \
+ fi ; \
+ done
@if [ ! -e "$@" ] ; then $(CLIENT) $(REPOSITORY)/$(NAME)/$@/$(get_sources_md5)/$@ ; fi
@if [ ! -e "$@" ] ; then echo "Could not download source file: $@ does not exist" ; exit 1 ; fi
@if test "$$(md5sum $@ | awk '{print $$1}')" != "$(get_sources_md5)" ; then \
More information about the fedora-extras-commits
mailing list