forked from osmocom/wireshark
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:
parent
877b9a0d52
commit
b215b92b69
|
@ -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
|
Loading…
Reference in New Issue