[dconf] build: changed abicheck.sh script
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf] build: changed abicheck.sh script
- Date: Tue, 17 Oct 2017 22:15:51 +0000 (UTC)
commit 8ff1b86cb8f6c848be82d99dbb593a50713ce6ad
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Wed Jul 12 11:15:05 2017 +0200
build: changed abicheck.sh script
abicheck.sh script has been changed to check the libdconfsettings
library from GSETTINGS_LIB environment variable. This helps when
checking the library in different locations.
'shebang' has also been added.
https://bugzilla.gnome.org/show_bug.cgi?id=784910
gsettings/Makefile.am | 1 +
gsettings/abicheck.sh | 4 +++-
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gsettings/Makefile.am b/gsettings/Makefile.am
index 4f6e66b..c1a96d6 100644
--- a/gsettings/Makefile.am
+++ b/gsettings/Makefile.am
@@ -25,5 +25,6 @@ install-data-hook:
$(gio_QUERYMODULES) $(giomodulesdir) ; \
fi
+TESTS_ENVIRONMENT = export GSETTINGS_LIB=libdconfsettings.so;
TESTS = abicheck.sh
EXTRA_DIST = abicheck.sh
diff --git a/gsettings/abicheck.sh b/gsettings/abicheck.sh
index c7b8154..91c0f09 100755
--- a/gsettings/abicheck.sh
+++ b/gsettings/abicheck.sh
@@ -1,2 +1,4 @@
-nm --dynamic --defined-only libdconfsettings.so > public-abi
+#!/bin/sh
+
+nm --dynamic --defined-only $GSETTINGS_LIB > public-abi
test "`cat public-abi | cut -f 3 -d ' ' | grep -v ^_ | grep -v ^g_io_module | wc -l`" -eq 0 && rm public-abi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]