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