]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Update abi-check.sh to compare 0.16 and 0.18
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 15 Sep 2024 16:10:57 +0000 (16:10 +0000)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 15 Sep 2024 16:10:57 +0000 (16:10 +0000)
abi-check.sh

index ab829f3da7f53e4485cdfdc62f46bedb09f443ca..ed714689b06771f6fbdb85800ab96eab6e54d4eb 100644 (file)
@@ -1,14 +1,18 @@
 #!/bin/sh
 
-prev=0.17
+# The 0.17 release is broken
+#prev=0.17
+prev=0.16
 release=0.18
 
 # ... clone json-c, abi-compliance-checker, abi-dumper
 
-mkdir build
-cd build
-CFLAGS=-Og cmake -DCMAKE_INSTALL_PREFIX=~/json-c-installs/json-c-${release} ..
-make && make test && make install
+if [ "$1" != "--skip-build" ] ; then
+       mkdir build
+       cd build
+       CFLAGS=-Og cmake -DCMAKE_INSTALL_PREFIX=~/json-c-installs/json-c-${release} ..
+       make && make test && make install
+fi
 
 # Assume the old version has already been built