[dconf/wip/inigomartinez/meson: 1/2] build: changed abicheck.sh script to get library from environment
- From: Iñigo Martínez <inigomartinez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf/wip/inigomartinez/meson: 1/2] build: changed abicheck.sh script to get library from environment
- Date: Thu, 13 Jul 2017 14:23:36 +0000 (UTC)
commit 2549e768dcd6a58fbdf1bc9acc8506939562bf32
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Wed Jul 12 11:15:05 2017 +0200
build: changed abicheck.sh script to get library from environment
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.
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]