aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-07-06 23:09:43 -0400
committerRob Austein <sra@hactrn.net>2015-07-06 23:09:43 -0400
commit2836c949c59e73e9a784acd09e89ace58278bef6 (patch)
tree2ef809a784d1c60278efe4922bb1326e9fecad60
parenta32f7d12dd55bee3541d17e3a5467853cd4162e8 (diff)
Add upload rule.
-rw-r--r--Makefile19
1 files 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