2011-10-30 22:46:52 +00:00
|
|
|
#!/bin/bash
|
2013-07-27 13:50:52 +00:00
|
|
|
#
|
|
|
|
# checks if Wireshark's ABI has been changes since last release (tag)
|
|
|
|
#
|
|
|
|
# Copyright 2011 Balint Reczey <balint@balintreczey.hu>
|
|
|
|
#
|
|
|
|
# Wireshark - Network traffic analyzer
|
|
|
|
# By Gerald Combs <gerald@wireshark.org>
|
|
|
|
# Copyright 1998 Gerald Combs
|
|
|
|
#
|
2018-03-06 14:31:02 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2011-11-15 15:28:20 +00:00
|
|
|
|
2011-10-30 22:46:52 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
if test -z "$1"; then
|
|
|
|
echo "Usage:"
|
|
|
|
echo "$0 \"<build commands>\""
|
|
|
|
echo "e.g. $0 \"./autogen.sh && ./configure && make -j3 && make dumpabi\""
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# build current version
|
|
|
|
bash -c "$1"
|
|
|
|
|
|
|
|
cd `git rev-parse --show-toplevel`
|
|
|
|
# we are at top level
|
2012-06-08 23:54:22 +00:00
|
|
|
|
|
|
|
# Stable branches with releases
|
|
|
|
#LAST_TAG=`git describe --tags --abbrev=0`
|
|
|
|
#LAST_TAG_DIR=$LAST_TAG
|
|
|
|
|
2012-07-27 14:57:30 +00:00
|
|
|
# Use latest commit
|
|
|
|
LAST_TAG=HEAD
|
2012-06-08 23:54:22 +00:00
|
|
|
LAST_TAG_DIR=master
|
|
|
|
|
|
|
|
rm -rf $LAST_TAG_DIR
|
|
|
|
mkdir $LAST_TAG_DIR
|
|
|
|
git archive $LAST_TAG | tar -x -C $LAST_TAG_DIR
|
2011-10-30 22:46:52 +00:00
|
|
|
|
|
|
|
# build latest tag
|
2012-06-08 23:54:22 +00:00
|
|
|
(cd $LAST_TAG_DIR && bash -c "$1")
|
2011-10-30 22:46:52 +00:00
|
|
|
|
2012-06-08 23:54:22 +00:00
|
|
|
exec tools/compare-abis.sh `pwd`/$LAST_TAG_DIR `pwd`
|
2011-10-30 22:46:52 +00:00
|
|
|
|