3 # Compare ABIs of two Wireshark working copies
5 # Copyright 2017 Balint Reczey <balint.reczey@canonical.com>
7 # Wireshark - Network traffic analyzer
8 # By Gerald Combs <gerald@wireshark.org>
9 # Copyright 1998 Gerald Combs
11 # SPDX-License-Identifier: GPL-2.0-or-later
13 # Set shared library package names and library versions in Debian packaging
14 # matching the new major release's so versions
18 for i
in codecs wireshark wiretap wsutil
; do
19 NEW_VERSION
=$
(grep SOVERSION
"$(grep -l lib${i} ./*/CMakeLists.txt)" |
sed 's/.*SOVERSION \([0-9]*\).*/\1/')
20 rename
"s/0\\./${NEW_VERSION}./" packaging
/debian
/lib
${i}0.
*
21 grep -l -R "lib${i}0" packaging/debian/ | xargs sed -i "s/lib${i}0/lib${i}${NEW_VERSION}/"
22 grep -l -R "lib${i}\\.so\\.0" packaging/debian/ | xargs sed -i "s/lib${i}\\.so\\.0/lib${i}.so.${NEW_VERSION}/"