From 3d0386f27ca66379acf50199e1d1298386eeeeb8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 02:55:53 +0200 Subject: Adding upstream version 3.2.1. Signed-off-by: Daniel Baumann --- scripts/obs-testbuild.sh | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 scripts/obs-testbuild.sh (limited to 'scripts/obs-testbuild.sh') diff --git a/scripts/obs-testbuild.sh b/scripts/obs-testbuild.sh new file mode 100755 index 0000000..f44cecc --- /dev/null +++ b/scripts/obs-testbuild.sh @@ -0,0 +1,38 @@ +#!/bin/bash +# +# Builds the checked out version in knot-dns-testing OBS repository + +set -o errexit -o nounset -o xtrace + +force=false + +# Read options +while getopts "f" o; do + case "${o}" in + f) + force=true + ;; + *) + ;; + esac +done +shift $((OPTIND-1)) + +# Clean working tree +if [[ $(git status --porcelain | wc -l) -ne 0 ]]; then + if [ "$force" = false ]; then + echo "working tree dirty. force clean with '-f'" + exit 1 + fi + git clean -dfx + git reset --hard +fi + +# Create tarball +scripts/make-archive.sh + +# Submit to OBS +scripts/make-distrofiles.sh -s +scripts/build-in-obs.sh knot-resolver-testing + +echo "Check results at https://build.opensuse.org/package/show/home:CZ-NIC:knot-resolver-testing/knot-resolver" -- cgit v1.2.3