diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:55:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:55:53 +0000 |
commit | 3d0386f27ca66379acf50199e1d1298386eeeeb8 (patch) | |
tree | f87bd4a126b3a843858eb447e8fd5893c3ee3882 /scripts/obs-testbuild.sh | |
parent | Initial commit. (diff) | |
download | knot-resolver-3d0386f27ca66379acf50199e1d1298386eeeeb8.tar.xz knot-resolver-3d0386f27ca66379acf50199e1d1298386eeeeb8.zip |
Adding upstream version 3.2.1.upstream/3.2.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'scripts/obs-testbuild.sh')
-rwxr-xr-x | scripts/obs-testbuild.sh | 38 |
1 files changed, 38 insertions, 0 deletions
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" |