summaryrefslogtreecommitdiffstats
path: root/remote/modules/openbox
diff options
context:
space:
mode:
authorChristian Rößler2013-06-24 14:19:26 +0200
committerChristian Rößler2013-06-24 14:19:26 +0200
commitf9129c417ff4165ca21f89f46fbadb048fee6545 (patch)
tree28e4b69d11dca43274df729d1bc9b8fe1e29ce7e /remote/modules/openbox
parent[systemd] howto debug systemd-logind and units in general (diff)
downloadtm-scripts-f9129c417ff4165ca21f89f46fbadb048fee6545.tar.gz
tm-scripts-f9129c417ff4165ca21f89f46fbadb048fee6545.tar.xz
tm-scripts-f9129c417ff4165ca21f89f46fbadb048fee6545.zip
Inserted detection of pango-querymodules-64 in case of 64bit OS
Diffstat (limited to 'remote/modules/openbox')
-rw-r--r--remote/modules/openbox/openbox.build12
1 files changed, 11 insertions, 1 deletions
diff --git a/remote/modules/openbox/openbox.build b/remote/modules/openbox/openbox.build
index 51c6beec..f3ce1448 100644
--- a/remote/modules/openbox/openbox.build
+++ b/remote/modules/openbox/openbox.build
@@ -16,5 +16,15 @@ build() {
post_copy() {
[ ! -d "$TARGET_BUILD_DIR/etc/pango" ] && mkdir -p "$TARGET_BUILD_DIR/etc/pango"
- pango-querymodules > "$TARGET_BUILD_DIR/etc/pango/pango.modules"
+
+ # little Workaround, as under e.g. 64bit Suse the binary is called
+ # pango-querymodules-64, not pango-querymodules.
+ which pango-querymodules 2>/dev/null 1>&2
+ ERR=$?
+ if [[ "$ERR" -ne 0 ]]; then
+ PANGO_QUERYMODULES_ARCH=pango-querymodules-64
+ else
+ PANGO_QUERYMODULES_ARCH=pango-querymodules
+ fi
+ $PANGO_QUERYMODULES_ARCH > "$TARGET_BUILD_DIR/etc/pango/pango.modules"
}