Revert "sq h2"
[metze/wireshark/wip.git] / tools / debian-nightly-package.sh
1 #!/bin/bash
2 #
3 # Wireshark - Network traffic analyzer
4 # By Gerald Combs <gerald@wireshark.org>
5 # Copyright 1998 Gerald Combs
6 #
7 # SPDX-License-Identifier: GPL-2.0-or-later
8
9 set -e
10
11 if test -z $1; then
12     echo "Usage:"
13     echo " $0 <distribution>"
14     echo " e.g: $0 xenial"
15     exit 1
16 fi
17
18 DIST=$1
19 VERSION=$(git describe --tags | sed 's/v//;s/-/~/g;s/rc/~rc/')
20 rm debian/changelog || true
21 EDITOR=touch dch -p --package wireshark --create --force-distribution -v${VERSION}~${DIST}1 -D $DIST
22 sed -i 's/\* Initial release.*/* Nightly build for '${DIST^}'/' debian/changelog
23 dpkg-buildpackage -S -d