aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2017-09-21 09:54:49 +0200
committerRob Austein <sra@hactrn.net>2017-09-21 09:54:49 +0200
commit40ddb1929ba0a490e627e79822f9d36a1da7e2dd (patch)
tree3891d6126b6e6864103fa82e5f283774467ef09e /Makefile
parent4d770b65a5cb6ac170f7e7858336b03762f9ccda (diff)
Auto-update the pbuilder environments.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b6c0743..93eeb65 100644
--- a/Makefile
+++ b/Makefile
@@ -108,10 +108,12 @@ dsc:
pbuilder:
rm -f ${PBUILDER_BASE}/*result/*
+ touch -d 'last week' .pbuilder-sell-by-date
umask ${REPO_UMASK}; \
for target in ${PBUILDER_TARGETS}; do echo $$target | tr '/' ' '; done | \
while read dist code arch; do \
reprepro -b ${REPO_BASE}/apt/$$dist -A $$arch list $$code ${PACKAGE_NAME} | awk '{v = $$3} END {exit v != "${PACKAGE_VERSION}"}' && continue; \
+ if test $${HOME}/pbuilder/$${code}-$${arch}-base.tgz -ot .pbuilder-sell-by-date; then pbuilder-dist $$code $$arch update; else true; fi; \
pbuilder-dist $$code $$arch build ${PACKAGE_NAME}_${PACKAGE_VERSION}.dsc; \
cp -p ${PBUILDER_BASE}/$${code}-$${arch}_result/${PACKAGE_NAME}_${PACKAGE_VERSION}.tar.xz ${REPO_BASE}/brew/tarballs/; \
reprepro -b ${REPO_BASE}/apt/$$dist include $$code ${PBUILDER_BASE}/$${code}-$${arch}_result/${PACKAGE_NAME}_${PACKAGE_VERSION}_$${arch}.changes; \