Author: brane
Date: Fri Jan 23 21:11:26 2026
New Revision: 1931490
Log:
Update ABI review scripts.
* abi/generate.sh: 'pushd' and 'popd' are Bashisms, make this a Bash script.
* abi/src/install.sh: Apply patches before building, fix typo.
Modified:
serf/tools/abi/generate.sh
serf/tools/abi/src/install.sh
Modified: serf/tools/abi/generate.sh
==============================================================================
--- serf/tools/abi/generate.sh Fri Jan 23 18:45:02 2026 (r1931489)
+++ serf/tools/abi/generate.sh Fri Jan 23 21:11:26 2026 (r1931490)
@@ -1,4 +1,4 @@
-#!/bin/sh -e
+#!/bin/bash -e
pushd work
abi-monitor -get -build -output ../work/serf.json ../src/serf.json
abi-tracker -build ../work/serf.json -deploy ../html
Modified: serf/tools/abi/src/install.sh
==============================================================================
--- serf/tools/abi/src/install.sh Fri Jan 23 18:45:02 2026
(r1931489)
+++ serf/tools/abi/src/install.sh Fri Jan 23 21:11:26 2026
(r1931490)
@@ -1,14 +1,19 @@
#!/bin/sh
-case "`basename $INSTALL_TO`" in
+
+version="`basename $INSTALL_TO`"
+
+case "$version" in
0.6.1)
patch -p0 < $(dirname "$0")/../patches/0.6.1-build-problem.patch
- ;&
+ ;;
+esac
+
+case "$version" in
0.*|1.0*|1.1*|1.2*)
./configure
- make install DESTDIR=$INSTALL_TO CFLAGS="-g -Og"
+ make install DESTDIR="$INSTALL_TO" CFLAGS="-g -Og"
;;
*)
- scons install --install-sandbox=$INSTALL_TO DEBUG=yes CFLAGS="-Og"
+ scons install --install-sandbox="$INSTALL_TO" DEBUG=yes CFLAGS="-g -Og"
;;
esac
-