summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2016-06-06 23:12:57 +0200
committeranonym <anonym@riseup.net>2016-06-06 23:24:13 +0200
commit63aaa8e85a7e5f0123658f0093425d0912e0b74e (patch)
tree4033ed8b5c99df01db560e8f1e37d34cf91b8904
parent1b7a2df2155a3e1b79a2eebac83fd840c6bdf4e0 (diff)
Improve release automation.
The old instructions will lead to *all* UDF:s (even unmodified ones) having their signature remade, which is unnecessary.
-rw-r--r--wiki/src/contribute/release_process.mdwn16
1 files changed, 8 insertions, 8 deletions
diff --git a/wiki/src/contribute/release_process.mdwn b/wiki/src/contribute/release_process.mdwn
index 2439702..8b2a085 100644
--- a/wiki/src/contribute/release_process.mdwn
+++ b/wiki/src/contribute/release_process.mdwn
@@ -649,14 +649,14 @@ Prepare upgrade-description files
1. Create an armoured detached signature for each created or modified
upgrade-description file.
- find "$RELEASE_CHECKOUT/wiki/src/upgrade/" \
- -type f -name upgrades.yml -exec \
- gpg -u "$TAILS_SIGNATURE_KEY" --armor --detach-sign {} \;
-
-1. Rename each detached signature to `.pgp`:
-
- find "$RELEASE_CHECKOUT/wiki/src/upgrade/" -type f \
- -name upgrades.yml.asc -exec rename -f 's,\.asc$,.pgp,' {} \;
+ find "${RELEASE_CHECKOUT}/wiki/src/upgrade/" \
+ -type f -name upgrades.yml | \
+ while read udf; do
+ if [ -n "$(git status --porcelain "${udf}")" ]; then
+ gpg -u "${TAILS_SIGNATURE_KEY}" --armor --detach-sign "${udf}"
+ mv "${udf}.asc" "${udf}.pgp"
+ fi
+ done
1. Add and commit the upgrade-description files and their detached
signatures to the Git branch used to prepare the release (`stable`