From db717ab660b1ae855d80d67dcc040f5a346e6249 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 9 Jul 2013 18:11:27 +0200 Subject: [PATCH] begin minimal protection against double upload Signed-off-by: Nico Schottelius --- .gitignore | 1 + Makefile | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 2c94b56f..76ed1fcb 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ cdist/version.py /src build .lock-* +.git-current-branch diff --git a/Makefile b/Makefile index 3660a3c2..937d70c7 100644 --- a/Makefile +++ b/Makefile @@ -194,7 +194,6 @@ git-branch-merge: git-checkout-stable git-checkout-stable: git-tag @git rev-parse --abbrev-ref HEAD > $(GIT_CURRENT) @git checkout "$(GIT_DST_BRANCH)" - make git-checkout-current git-checkout-current: git checkout "$$(cat $(GIT_CURRENT))" @@ -228,15 +227,20 @@ $(PYPI_FILE): man $(VERSION_FILE) ################################################################################ # archlinux # +ARCHLINUX_FILE=.lock-archlinux ARCHLINUXTAR=cdist-$(CHANGELOG_VERSION)-1.src.tar.gz + $(ARCHLINUXTAR): PKGBUILD pypi-release makepkg -c --source PKGBUILD: PKGBUILD.in $(VERSION_FILE) ./PKGBUILD.in -archlinux-release: $(ARCHLINUXTAR) - burp -c system $^ +$(ARCHLINUX_FILE): $(ARCHLINUXTAR) $(VERSION_FILE) + burp -c system $(ARCHLINUXTAR) + touch $@ + +archlinux-release: $(ARCHLINUX_FILE) ################################################################################ # Release