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>
|
|
|
|
#
|
2011-11-15 15:28:20 +00:00
|
|
|
# $Id$
|
2013-07-27 13:50:52 +00:00
|
|
|
#
|
|
|
|
# Wireshark - Network traffic analyzer
|
|
|
|
# By Gerald Combs <gerald@wireshark.org>
|
|
|
|
# Copyright 1998 Gerald Combs
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
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
|
|
|
|