summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2009-02-02 13:41:45 +0100
committerHans Ulrich Niedermann <hun@n-dimensional.de>2009-02-02 13:41:45 +0100
commita61107a5885a2b04397ec839b4b8b2586c328eda (patch)
tree66517d22a9d4ee47a2f654d9e42fe595e0ad1b9e
parent0e2aeb90889e04e72ffe286ad88bc647100f1323 (diff)
downloadgit-rpm-a61107a5885a2b04397ec839b4b8b2586c328eda.tar.gz
git-rpm-a61107a5885a2b04397ec839b4b8b2586c328eda.tar.xz
git-rpm-a61107a5885a2b04397ec839b4b8b2586c328eda.zip
Make rsync faster: Use tarballs in existing dirs
Presume that for each tag, there is a remote directory with files created with "make upload". If there are, rsync can get the source tarballs from there unchanged, and does not need to upload it again. The .src.rpm which contains the whole tarball in its belly still needs to be uploaded, though.
-rw-r--r--git-rpm.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-rpm.mk b/git-rpm.mk
index 7b1b23c..7f9dc4c 100644
--- a/git-rpm.mk
+++ b/git-rpm.mk
@@ -118,7 +118,7 @@ $(NVR)/%: %
$(NVR): $(UPLOAD_FILES)
mkdir -p $(NVR)
- rsync -avz --delete $(NVR)/ $(RSYNC_USHO):$(RSYNC_DIR)/
+ rsync -avz --delete $(foreach x,$(shell git tag -l),--link-dest=../$(subst $(NAME)-,,$(x))) $(NVR)/ $(RSYNC_USHO):$(RSYNC_DIR)/
touch $@
.PHONY: clean