Revert "drsuapi_dissect_element_DsGetNCChangesCtr6TS_ctr6 dissect_krb5_PAC_NDRHEADERBLOB"
[wireshark-sm.git] / tools / release-update-debian-soversions.sh
blobe788d718ebb3739b426c5b6a1f831d41894205bd
1 #!/bin/sh
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
16 set -e
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}/"
23 done