tasn pushed a commit to branch master.

http://git.enlightenment.org/tools/abi_checks.git/commit/?id=29cb2c77b7179136bc0e8d8a045f30885b6ced1e

commit 29cb2c77b7179136bc0e8d8a045f30885b6ced1e
Author: Tom Hacohen <t...@stosb.com>
Date:   Tue Sep 22 16:01:18 2015 +0100

    Added scripts to easily generate and compare dumps.
---
 README     |  6 +++---
 cmpdump.sh | 12 ++++++++++++
 gendump.sh | 11 +++++++++++
 3 files changed, 26 insertions(+), 3 deletions(-)

diff --git a/README b/README
index 1727dc3..a103d4c 100644
--- a/README
+++ b/README
@@ -1,6 +1,6 @@
 Configs and dumps for 
http://ispras.linuxbase.org/index.php/ABI_compliance_checker
 
 Generation example:
-1. Generate the dump for the latest version: abi-compliance-checker -l 
elementary -dump elementary-1.10.0.xml
-2. Generate the report: abi-compliance-checker -l elementary -old 
abi_dumps/elementary/elementary_1.9.4.abi.tar.gz -new 
abi_dumps/elementary/elementary_1.10.0.abi.tar.gz
-    Where abi_dumps/elementary/elementary_1.9.4.abi.tar.gz is a previously 
created dump for the old release we'd like to compare to.
+1. Generate the dump for the latest version: ./gendump.sh elementary 1.10.0
+2. Generate the report: ./cmpdump.sh elementary 1.9.4 1.10.0
+    Assuming abi_dumps/elementary/elementary_1.9.4.abi.tar.gz and one for 
1.10.0 exist.
diff --git a/cmpdump.sh b/cmpdump.sh
new file mode 100755
index 0000000..9e3b6f8
--- /dev/null
+++ b/cmpdump.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+if [ "$#" -ne 3 ]; then
+    echo "Usage: $0 <library> <old version> <new version>"
+    exit 1
+fi
+
+libname="$1"
+liboldver="$2"
+libnewver="$3"
+
+abi-compliance-checker -l "${libname}" -old 
"abi_dumps/${libname}/${libname}_${liboldver}.abi.tar.gz" -new 
"abi_dumps/${libname}/${libname}_${libnewver}.abi.tar.gz"
diff --git a/gendump.sh b/gendump.sh
new file mode 100755
index 0000000..b83852f
--- /dev/null
+++ b/gendump.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+if [ "$#" -ne 2 ]; then
+    echo "Usage: $0 <library> <version>"
+    exit 1
+fi
+
+libname="$1"
+libver="$2"
+
+abi-compliance-checker -l "${libname}" -dump "${libname}-${libver}.xml"

-- 


Reply via email to