blob: e422292877e02d3bb6bfa0506d28d45cee1f0f30 (
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
39
40
41
42
43
44
45
46
47
|
#!/bin/sh -e
DIR="$(realpath "$(dirname "$0")")"
PROJ="$1"
BRANCHES="
osmith/deb-packaging
osmocom/qcdiag
laforge/rspro
"
prepare_git_repo() {
cd "$DIR"
if ! [ -d _cache/wireshark ]; then
mkdir -p _cache
git -C _cache clone https://gitlab.com/wireshark/wireshark.git
git -C _cache/wireshark remote add osmocom https://gitea.osmocom.org/osmocom/wireshark
fi
cd _cache/wireshark
git fetch --all
git clean -fdx
git checkout -f -B osmocom/all-in-one origin/master
for b in $BRANCHES; do
git merge --no-edit "osmocom/$b"
done
}
update_obs_project() {
cd "$DIR"
./update_obs_project.py \
--apiurl https://obs.osmocom.org \
--docker \
--allow-unknown-package \
--git-skip-checkout \
--git-skip-fetch \
--version-append "~osmocom" \
"$PROJ" \
wireshark
}
set -x
prepare_git_repo
if [ -n "$PROJ" ]; then
update_obs_project
fi
|