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
13 echo " $0 <distribution>"
14 echo " e.g: $0 xenial"
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