From 2836c949c59e73e9a784acd09e89ace58278bef6 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Mon, 6 Jul 2015 23:09:43 -0400 Subject: Add upload rule. --- Makefile | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3