1
0
mirror of https://github.com/openbsd/src.git synced 2026-06-17 23:03:29 +02:00

Make signify regress work without obj dir. Avoid including the

output archive by reducing the input file list to text files only.
from Christian Ludwig; OK beck@
This commit is contained in:
bluhm
2020-04-03 12:01:56 +00:00
parent 6a6803e405
commit 8c0c56a30d
2 changed files with 6 additions and 5 deletions
+4 -3
View File
@@ -1,10 +1,11 @@
# $OpenBSD: Makefile,v 1.4 2014/03/17 02:49:02 tedu Exp $
# $OpenBSD: Makefile,v 1.5 2020/04/03 12:01:56 bluhm Exp $
CLEANFILES += test.sig confirmorders confirmorders.sig HASH.sig
CLEANFILES += test.sig confirmorders confirmorders.sig HASH HASH.sig \
archive.tgz signed.tgz
REGRESS_TARGETS = t1
t1:
@sh ${.CURDIR}/signify.sh ${.CURDIR}
sh ${.CURDIR}/signify.sh ${.CURDIR}
.PHONY: t1
+2 -2
View File
@@ -1,6 +1,6 @@
#!/bin/sh
#
# $OpenBSD: signify.sh,v 1.9 2019/12/09 09:41:54 espie Exp $
# $OpenBSD: signify.sh,v 1.10 2020/04/03 12:01:56 bluhm Exp $
srcdir=$1
@@ -28,7 +28,7 @@ signify -S -e -s $seckey -m HASH
rm HASH
signify -C -q -p $pubkey -x HASH.sig
tar zcPf archive.tgz $srcdir
tar zcPf archive.tgz $srcdir/*.txt
signify -zS -s $seckey -m archive.tgz -x signed.tgz
# check it's still valid gzip
gunzip -t signed.tgz