Codebase list core-cache-clojure / 17f9380
d/watch: update to v4, move to git mode and delete superfluous rules in d/rules. Louis-Philippe VĂ©ronneau 3 years ago
3 changed file(s) with 6 addition(s) and 25 deletion(s). Raw diff Collapse all Expand all
22 * Team upload.
33 * New upstream release.
44 * d/rules: don't build the documentation.
5 * d/watch: update to v4, move to git mode and delete superfluous rules in
6 d/rules.
57
68 -- Louis-Philippe VĂ©ronneau <pollo@debian.org> Tue, 08 Dec 2020 13:23:16 -0500
79
66 PRODUCED_JAR=core.cache.jar
77 NAMESPACE=org.clojure/core.cache
88 MAVEN_META=META-INF/maven/$(NAMESPACE)
9
10 DEB_PKGNAME := $(shell dpkg-parsechangelog -SSource)
11 DEB_VERSION := $(shell dpkg-parsechangelog -SVersion)
12 DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-)
13 DEB_UPSTREAM_VERSION := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//')
14 GIT_TAG := $(shell echo '$(DEB_UPSTREAM_VERSION)' | sed -e 's/~/_/')
15 UPSTREAM_GIT = https://github.com/clojure/core.cache
169
1710 %:
1811 dh $@ --with javahelper,jh_maven_repo_helper
3629 jh_clean
3730 rm -f $(CURDIR)/$(PRODUCED_JAR)
3831 rm -rf $(CURDIR)/meta
39
40 gen-orig-xz:
41 git tag -v $(GIT_TAG) || true
42 if [ ! -f ../$(DEBPKGNAME)_$(VERSION).orig.tar.xz ] ; then \
43 git archive --prefix=$(DEB_PKGNAME)-$(DEB_UPSTREAM_VERSION)/ $(GIT_TAG) | xz >../$(DEB_PKGNAME)_$(DEB_UPSTREAM_VERSION).orig.tar.xz ; \
44 mkdir -p ../build-area ; \
45 cp ../$(DEB_PKGNAME)_$(DEB_UPSTREAM_VERSION).orig.tar.xz ../build-area ; \
46 fi
47
48 fetch-upstream-remote:
49 ifeq (,$(findstring https:,$(UPSTREAM_GIT)))
50 $(error Using insecure proto in UPSTREAM_GIT: $(UPSTREAM_GIT))
51 endif
52 git remote add upstream $(UPSTREAM_GIT) || true
53 git remote set-url upstream $(UPSTREAM_GIT)
54 git fetch upstream
0 version=3
1 https://github.com/clojure/core.cache/tags .*[-/]{1}(\d[\d\.]+)\.tar\.gz
0 version=4
1 opts="mode=git, uversionmangle=s/core.cache-\.//" \
2 https://github.com/clojure/core.cache.git \
3 refs/tags/(core.cache-)?([\d\.]+)