[Cryptech-Commits] [user/sra/novena-releng] 01/01: Add upload rule.

git at cryptech.is git at cryptech.is
Tue Jul 7 03:10:13 UTC 2015


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch master
in repository user/sra/novena-releng.

commit 2836c949c59e73e9a784acd09e89ace58278bef6
Author: Rob Austein <sra at hactrn.net>
Date:   Mon Jul 6 23:09:43 2015 -0400

    Add upload rule.
---
 Makefile | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 863766a..c7a54bc 100644
--- a/Makefile
+++ b/Makefile
@@ -75,12 +75,21 @@ DCH =	test -f debian/changelog || \
 REPOSITORY := $(abspath ${HOME}/repository)
 CODENAME   := wheezy
 
+# Username and URI for uploading reprepro repository to public server.
+
+UPLOAD_USER := aptbot
+UPLOAD_URI  := rsync://apt.cryptech.is/novena/
+
 
 all: init sw rtl
 
 init:
 	git submodule update --init --recursive
 
+clean:
+	git clean -dfx
+	git submodule foreach 'git clean -dfx'
+
 sw:
 	cd sw; $(call DCH,sw,software tools)
 	cd sw; debuild -S -uc -us
@@ -97,8 +106,10 @@ reprepro: ${REPOSITORY}/conf/distributions ${REPOSITORY}/conf/options
 ${REPOSITORY}/conf/distributions ${REPOSITORY}/conf/options:
 	install -D reprepro-conf/$(notdir $@) ${REPOSITORY}/conf/$(notdir $@)
 
-clean:
-	git clean -dfx
-	git submodule foreach 'git clean -dfx'
+RSYNC	:= rsync --rsh 'ssh -l ${UPLOAD_USER}' --archive --itemize-changes
+
+upload:
+	${RSYNC} --ignore-existing       ${REPOSITORY}/ ${UPLOAD_URI}
+	${RSYNC} --delete --delete-delay ${REPOSITORY}/ ${UPLOAD_URI}
 
-.PHONY: all init sw rtl reprepro clean
+.PHONY: all init clean sw rtl reprepro upload



More information about the Commits mailing list