[Crosstoolchain-logs] [device-tree-compiler] 198/198: dtc: Makefile improvements for release uploading
Hector Oron
zumbi at moszumanska.debian.org
Thu Dec 8 17:07:09 UTC 2016
This is an automated email from the git hooks/post-receive script.
zumbi pushed a commit to branch upstream/1.4.x
in repository device-tree-compiler.
commit ec02b34c05be04f249ffaaca4b666f5246877dea
Author: David Gibson <david at gibson.dropbear.id.au>
Date: Sat Sep 3 21:02:30 2016 +1000
dtc: Makefile improvements for release uploading
This has some fixes to the make dist target, and a new make kup target for
maintainer convenience uploading new releases.
Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
Makefile | 24 ++++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index ee8e3b2..32dcfcf 100644
--- a/Makefile
+++ b/Makefile
@@ -197,10 +197,26 @@ fdtget: $(FDTGET_OBJS) $(LIBFDT_archive)
fdtput: $(FDTPUT_OBJS) $(LIBFDT_archive)
dist:
- git archive --format=tar --prefix=dtc-v$(dtc_version)/ HEAD \
- > ../dtc-v$(dtc_version).tar
- cat ../dtc-v$(dtc_version).tar | \
- gzip -9 > ../dtc-v$(dtc_version).tgz
+ git archive --format=tar --prefix=dtc-$(dtc_version)/ HEAD \
+ > ../dtc-$(dtc_version).tar
+ cat ../dtc-$(dtc_version).tar | \
+ gzip -9 > ../dtc-$(dtc_version).tar.gz
+
+#
+# Release signing and uploading
+# This is for maintainer convenience, don't try this at home.
+#
+ifeq ($(MAINTAINER),y)
+GPG = gpg2
+KUP = kup
+KUPDIR = /pub/software/utils/dtc
+
+kup: dist
+ $(GPG) --detach-sign --armor -o ../dtc-$(dtc_version).tar.sign \
+ ../dtc-$(dtc_version).tar
+ $(KUP) put ../dtc-$(dtc_version).tar.gz ../dtc-$(dtc_version).tar.sign \
+ $(KUPDIR)/dtc-$(dtc_version).tar.gz
+endif
#
# Testsuite rules
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git
More information about the Crosstoolchain-logs
mailing list