diff options
author | Rob Austein <sra@hactrn.net> | 2015-07-06 23:09:43 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-07-06 23:09:43 -0400 |
commit | 2836c949c59e73e9a784acd09e89ace58278bef6 (patch) | |
tree | 2ef809a784d1c60278efe4922bb1326e9fecad60 | |
parent | a32f7d12dd55bee3541d17e3a5467853cd4162e8 (diff) |
Add upload rule.
-rw-r--r-- | Makefile | 19 |
1 files changed, 15 insertions, 4 deletions
@@ -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 |