![Gerald Combs](/assets/img/avatar_default.png)
------------------------------------------------------------------------ r43165 | gerald | 2012-06-08 14:23:25 -0700 (Fri, 08 Jun 2012) | 4 lines Changed paths: M /trunk-1.6/epan/Makefile.am M /trunk-1.6/wiretap/Makefile.am M /trunk-1.6/wsutil/Makefile.am Use separate commands in the dumpabi recipes instead a big huge long chain. If abi-compliance-checker fails print the contents of its log file. ------------------------------------------------------------------------ r43168 | gerald | 2012-06-08 15:43:50 -0700 (Fri, 08 Jun 2012) | 2 lines Changed paths: M /trunk-1.6/epan/Makefile.am M /trunk-1.6/wiretap/Makefile.am M /trunk-1.6/wsutil/Makefile.am Make sure ln happens in the right directory. ------------------------------------------------------------------------ We don't currently have a usable tag for "git describe --tags --abbrev=0" to latch onto so just use the first 1.9 commit. svn path=/trunk/; revision=43170
38 lines
800 B
Bash
Executable file
38 lines
800 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# $Id$
|
|
|
|
# check if Wireshark's ABI has been changes since last release (tag)
|
|
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
|
|
|
|
# Stable branches with releases
|
|
#LAST_TAG=`git describe --tags --abbrev=0`
|
|
#LAST_TAG_DIR=$LAST_TAG
|
|
|
|
# Unstable branches, e.g. master don't have usable tags. Use a commit instead.
|
|
LAST_TAG=f1cf70fc10a09318e4a560dd9491f92d01f1c772
|
|
LAST_TAG_DIR=master
|
|
|
|
rm -rf $LAST_TAG_DIR
|
|
mkdir $LAST_TAG_DIR
|
|
git archive $LAST_TAG | tar -x -C $LAST_TAG_DIR
|
|
|
|
# build latest tag
|
|
(cd $LAST_TAG_DIR && bash -c "$1")
|
|
|
|
exec tools/compare-abis.sh `pwd`/$LAST_TAG_DIR `pwd`
|
|
|