diff options
-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 |