summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-07-26 12:55:24 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2014-07-26 12:55:24 +0200
commit48944f8f4c0ca1f3f7d59ce911a689a7777197ee (patch)
treec19a1fef71d8265f41ee73b0ebe551dadbe645d1 /Makefile
parentf60e809b87c6d9b0ea87ceeb54507d486f2934eb (diff)
downloadlualibs-48944f8f4c0ca1f3f7d59ce911a689a7777197ee.tar.gz
add “sign” target to makefileshow
We’ll be shipping GPG signatures along with releases from now on, mirroring Luaotfload: https://github.com/lualatex/luaotfload/commit/2cd6d7aab3687bbfc43f1fc82da626b8c9395f27
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a50c63d..5e0fd61 100644
--- a/Makefile
+++ b/Makefile
@@ -34,6 +34,7 @@ DISTDIR = ./lualibs
TEXMFROOT = ./texmf
CTAN_ZIP = $(NAME).zip
+CTAN_ZIPSIG = $(CTAN_ZIP).asc
TDS_ZIP = $(NAME).tds.zip
ZIPS = $(CTAN_ZIP) $(TDS_ZIP)
@@ -46,6 +47,7 @@ all: $(GENERATED) $(DOC_TEX)
doc: $(COMPILED)
unpack: $(UNPACKED)
ctan: check $(CTAN_ZIP)
+sign: $(CTAN_ZIPSIG)
tds: $(TDS_ZIP)
world: all ctan
@@ -83,6 +85,11 @@ $(CTAN_ZIP): $(ALL_FILES) $(TDS_ZIP)
$(make-ctandir)
@zip -r -9 $@ $(DISTDIR) $(TDS_ZIP) >/dev/null
+$(CTAN_ZIPSIG): $(CTAN_ZIP)
+ @echo "Signing package $(CTAN_ZIP)"
+ @$(RM) -- $@
+ @gpg --batch --armor --detach-sign "$(CTAN_ZIP)"
+
define run-install
@mkdir -p $(RUNDIR) && cp $(RUNFILES) $(RUNDIR)
@mkdir -p $(DOCDIR) && cp $(DOCFILES) $(DOCDIR)