Add script for generating nightly .debs with git revision

Change-Id: I5478feabd6966fa9ed46258da4815bb8ac882ec9
Reviewed-on: https://code.wireshark.org/review/20601
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Balint Reczey 2017-03-17 15:13:33 +01:00 committed by Anders Broman
parent 877b9a0d52
commit b215b92b69
1 changed files with 17 additions and 0 deletions

17
tools/debian-nightly-package.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
set -e
if test -z $1; then
echo "Usage:"
echo " $0 <distribution>"
echo " e.g: $0 xenial"
exit 1
fi
DIST=$1
VERSION=$(git describe --tags | sed 's/v//;s/-/~/g;s/rc/~rc/')
rm debian/changelog || true
EDITOR=touch dch -p --package wireshark --create --force-distribution -v${VERSION}~${DIST}1 -D $DIST
sed -i 's/\* Initial release.*/* Nightly build for '${DIST^}'/' debian/changelog
dpkg-buildpackage -S -d