blob: f44cecc3af16a456720c9823296f0aaadb43c9cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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"
|