From 4327c5789ccbc186fe59e50e13f29a41c4b0e4ea Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 12 Jun 2021 14:40:02 +0200 Subject: Updating. Signed-off-by: Daniel Baumann --- bin/pbuild.sh | 37 ++++++++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/bin/pbuild.sh b/bin/pbuild.sh index 2b47dec..7f88118 100755 --- a/bin/pbuild.sh +++ b/bin/pbuild.sh @@ -43,8 +43,8 @@ esac Parameters() { - LONG_OPTIONS="auto,build:,distribution:,interactive,nocheck,package:,tag:,upload," - OPTIONS="a,b:,d:,i,n,p:,t:,u," + LONG_OPTIONS="auto,build:,distribution:,interactive,nocheck,only-missing-builds,package:,tag:,upload," + OPTIONS="a,b:,d:,i,n,o,p:,t:,u," PARAMETERS="$(getopt --longoptions ${LONG_OPTIONS} --name=${PROGRAM} --options ${OPTIONS} --shell sh -- ${@})" @@ -89,6 +89,11 @@ Parameters() shift 2 ;; + -o|--only-missing-builds) + ONLY_MISSING_BUILDS="true" + shift 1 + ;; + -t|--tag) TAG="${2}" shift 2 @@ -116,7 +121,7 @@ Parameters "${@}" if [ -z "${DISTRIBUTION}" ] || [ -z "${PACKAGE}" ] then - echo "Usage: ${PROGRAM} [-b|--build BUILD] -d|--distribution DISTRIBUTION -p|--package PACKAGE -t|--tag TAG[,TAG,...]" >&2 + echo "Usage: ${PROGRAM} -a|--auto [-b|--build BUILD] -d|--distribution DISTRIBUTION -n|--nocheck -p|--package PACKAGE -o|--only-missing-builds -t|--tag ALL|TAG[,TAG,...] -u|--upload" >&2 exit 1 fi @@ -130,6 +135,12 @@ fi TAGS="$(echo ${TAG} | sed -e 's|,| |g')" +case "${TAGS}" in + ALL) + TAGS="$(wget -q https://git.progress-linux.org/packages/${DISTRIBUTION}/${PACKAGE}/refs/ -O - | grep "