summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2017-04-10 12:27:52 -0400
committerPeter Jones <pjones@redhat.com>2017-04-10 12:27:52 -0400
commit84d1118d0084611eab4527fd6cb6c68d4cad8ce9 (patch)
tree35a44affb6616908d7838b19334a20abb0a53aeb
parent0fe4a80e9cb9f02ecbb1cebb73331011e3641ff4 (diff)
downloadefi-boot-shim-84d1118d0084611eab4527fd6cb6c68d4cad8ce9.tar.gz
efi-boot-shim-84d1118d0084611eab4527fd6cb6c68d4cad8ce9.zip
make tag: always tag latest-release as well
Signed-off-by: Peter Jones <pjones@redhat.com>
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1040d4f2..31a9b37c 100644
--- a/Makefile
+++ b/Makefile
@@ -34,6 +34,8 @@ SHIMNAME = shim
MMNAME = MokManager
FBNAME = fallback
+COMMITID ?= $(shell if [ -d .git ] ; then git log -1 --pretty=format:%H ; elif [ -f commit ]; then cat commit ; else echo commit id not available; fi)
+
ifneq ($(origin OVERRIDE_SECURITY_POLICY), undefined)
CFLAGS += -DOVERRIDE_SECURITY_POLICY
endif
@@ -116,7 +118,7 @@ shim_cert.h: shim.cer
version.c : version.c.in
sed -e "s,@@VERSION@@,$(VERSION)," \
-e "s,@@UNAME@@,$(shell uname -a)," \
- -e "s,@@COMMIT@@,$(shell if [ -d .git ] ; then git log -1 --pretty=format:%H ; elif [ -f commit ]; then cat commit ; else echo commit id not available; fi)," \
+ -e "s,@@COMMIT@@,$(COMMITID)," \
< version.c.in > version.c
certdb/secmod.db: shim.crt
@@ -208,6 +210,7 @@ test-archive:
tag:
git tag --sign $(GITTAG) refs/heads/master
+ git tag -f latest-release $(GITTAG)
archive: tag
@rm -rf /tmp/shim-$(VERSION) /tmp/shim-$(VERSION)-tmp