From 3c674d4f263e8f38e0518530b88160b0fa319560 Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Fri, 15 Nov 2024 13:57:44 +1100 Subject: [PATCH] fix sign_build_list.sh and update README --- utils/README.md | 37 +++++++++++- utils/parse-list.sh | 71 ----------------------- utils/sign_build.sh | 47 +++++++++------- utils/sign_build_list.sh | 119 +++++++++++++++++++++++---------------- 4 files changed, 132 insertions(+), 142 deletions(-) delete mode 100755 utils/parse-list.sh diff --git a/utils/README.md b/utils/README.md index 6c4bde2..4533568 100644 --- a/utils/README.md +++ b/utils/README.md @@ -3,10 +3,41 @@ ## sign_build.sh Sign all rpms for a particular build + sign_rpm.sh [ | | | | | ] + +Required: (one of only) +- n-v-r: of the build (e.g. smeserver-backup-11.0.0-7.el8) +- build_id: e.g. 643 +- package: e.g. smeserver-backup (used in conjunction with ) +- rpm: to sign a specific rpm (used in conjunction with ) + +Optional: +- arch=: only rpms for these arches (comma seperated list - defaults to all) +- nodebuginfo: do NOT include debug rpms (defaults to included) +- latestfrom=: used with and will use the latest build for this tag +- gpg_name=: name used to create the gpg key we want to sign with (default kojiadmin@koozali.org) +- debug: display debug information + ## sign_build_list.sh Sign all rpms for each build specified in a file (1 line per build) -## queue_builds.sh -Queue a build for each package supplied in a file + sign_build_list.sh [ | | | | | ] -## parse-list.sh +Required: +- file name of list containing builds to be signed + +Optional: +- arch=: only rpms for these arches (comma seperated list - defaults to all) +- nodebuginfo: do NOT include debug rpms (defaults to included) +- gpg_name=: name used to create the gpg key we want to sign with (default kojiadmin@koozali.org) +- gpg_key=: if you want to check if they have already been signed with this key (default - don't check) +- debug: display debug information +- dry_run: do a 'dry run' and only show what will be executed, don't do it + +## queue_builds.sh +Queue a build the latest tag for each package supplied in a file (1 package per line) + + queue-builds.sh [ | ] + +- to wait for one build to complete before submitting the next one (default is nowait - queue them all) +- (default is smecontribs) diff --git a/utils/parse-list.sh b/utils/parse-list.sh deleted file mode 100755 index 9e7d5c5..0000000 --- a/utils/parse-list.sh +++ /dev/null @@ -1,71 +0,0 @@ -#!/bin/bash -# -# Run script against every item in input file - -if [[ -z $1 ]] ; then - echo "parse a list of parameters and execute script with those parameters" - echo "parse-list.sh