summaryrefslogtreecommitdiff
path: root/tools/maint
diff options
context:
space:
mode:
Diffstat (limited to 'tools/maint')
-rw-r--r--tools/maint/exportall.inc8
-rw-r--r--tools/maint/gsettings.inc4
-rw-r--r--tools/maint/libpath.inc10
3 files changed, 20 insertions, 2 deletions
diff --git a/tools/maint/exportall.inc b/tools/maint/exportall.inc
new file mode 100644
index 0000000..f03be3c
--- /dev/null
+++ b/tools/maint/exportall.inc
@@ -0,0 +1,8 @@
+
+# source tools/maint/exportall.inc
+
+# unset PYTHONPATH GSETTINGS_SCHEMA_DIR LD_LIBRARY_PATH
+
+source tools/maint/pypath.inc
+source tools/maint/gsettings.inc
+source tools/maint/libpath.inc
diff --git a/tools/maint/gsettings.inc b/tools/maint/gsettings.inc
index 40941b4..85614c6 100644
--- a/tools/maint/gsettings.inc
+++ b/tools/maint/gsettings.inc
@@ -3,6 +3,6 @@
# source tools/maint/gsettings.inc
-glib-compile-schemas src/schemas/
+find . -type d -name schemas -exec glib-compile-schemas {} \;
-export GSETTINGS_SCHEMA_DIR=$PWD/src/schemas
+export GSETTINGS_SCHEMA_DIR=$( find . -type d -name schemas -printf "$PWD/%P:" | sed 's/:$//' )
diff --git a/tools/maint/libpath.inc b/tools/maint/libpath.inc
new file mode 100644
index 0000000..19e68d7
--- /dev/null
+++ b/tools/maint/libpath.inc
@@ -0,0 +1,10 @@
+
+# Look for all path containing binaries for local execution
+
+# source tools/maint/libpath.inc
+
+LD_LIBRARY_PATH="$PWD/src/.libs:$LD_LIBRARY_PATH"
+
+find . -type d -name schemas -exec glib-compile-schemas {} \;
+
+export LD_LIBRARY_PATH=$( find plugins/ -maxdepth 2 -type d -name '.libs' -printf "$PWD/plugins/%P:" | sed 's/:$//' ):"$LD_LIBRARY_PATH"