1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
OUTPUT_MEMBER_KEYRINGS := \
output/keyrings/debian-keyring.pgp \
output/keyrings/debian-nonupload.pgp \
output/keyrings/debian-role-keys.pgp \
# EOL
OUTPUT_KEYRINGS := \
$(OUTPUT_MEMBER_KEYRINGS) \
output/keyrings/debian-maintainers.pgp \
output/keyrings/emeritus-keyring.pgp \
# EOL
OUTPUT_COMPAT_KEYRINGS := \
$(patsubst %.pgp,%.gpg,$(OUTPUT_KEYRINGS)) \
# EOL
OUTPUT_FILES := \
$(OUTPUT_KEYRINGS) \
$(OUTPUT_COMPAT_KEYRINGS) \
output/sha512sums.txt \
output/README \
output/changelog \
# EOL
all: $(OUTPUT_FILES)
output/keyrings/%.pgp: %-pgp %-pgp/0x*
cat $*-pgp/0x* > $@
# FIXME: To have a smooth transition, for now we hardlink the keyrings, so
# that we do not entangle the Debian infrastructure updates that would need
# to cope with the symlinks, from the Debian packaging updates for the
# archive. Once the infra is updated we can switch from the first command
# to the second commented command.
output/keyrings/%.gpg: output/keyrings/%.pgp
ln -f $< $@
# ln -sf $(<F) $@
output/sha512sums.txt: $(OUTPUT_KEYRINGS)
cd output; sha512sum keyrings/* > sha512sums.txt
output/README: README
cp README output/
output/changelog: debian/changelog
cp debian/changelog output/
output/openpgpkey: $(OUTPUT_MEMBER_KEYRINGS)
cd output && ../scripts/update-keyrings build-wkd debian.org keyrings/debian-keyring.pgp keyrings/debian-nonupload.pgp keyrings/debian-role-keys.pgp
test: all
./runtests
clean:
rm -f output/keyrings/*.pgp output/keyrings/*.gpg output/sha512sums.txt output/README output/changelog output/keyrings/*~
rm -rf gpghome output/openpgpkey
|