diff options
author | Rob Austein <sra@hactrn.net> | 2017-09-21 09:54:49 +0200 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2017-09-21 09:54:49 +0200 |
commit | 40ddb1929ba0a490e627e79822f9d36a1da7e2dd (patch) | |
tree | 3891d6126b6e6864103fa82e5f283774467ef09e | |
parent | 4d770b65a5cb6ac170f7e7858336b03762f9ccda (diff) |
Auto-update the pbuilder environments.
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; \ |