summaryrefslogtreecommitdiffstats
path: root/source.local/l/gtk+3/update-gtk-immodules-3.0
diff options
context:
space:
mode:
Diffstat (limited to 'source.local/l/gtk+3/update-gtk-immodules-3.0')
-rw-r--r--source.local/l/gtk+3/update-gtk-immodules-3.013
1 files changed, 8 insertions, 5 deletions
diff --git a/source.local/l/gtk+3/update-gtk-immodules-3.0 b/source.local/l/gtk+3/update-gtk-immodules-3.0
index c4ce5a6..f4f5f97 100644
--- a/source.local/l/gtk+3/update-gtk-immodules-3.0
+++ b/source.local/l/gtk+3/update-gtk-immodules-3.0
@@ -4,22 +4,25 @@
umask 022
# Get the machine type from uname:
-host=$(uname -m)-slackware-linux
-
+mtype=$(uname -m)
+
# Fix $host for arm arch:
-case "$host" in
+case "$mtype" in
armv[6,7,8]*)
if readelf /usr/bin/file -A | grep -q "Tag_ABI_VFP_args: VFP registers"
then
# Hardfloat, rewrite armv7l -> armv7hl
- host="$(echo $host | sed -e 's/\(armv.\)/\1h/')"
+ mtype="$(echo $mtype | sed -e 's/\(armv.\)/\1h/')"
fi
- host=$host-slackware-linux-gnueabi
+ host=$mtype-slackware-linux-gnueabi
;;
arm*)
# Softfloat:
host=arm-slackware-linux-gnueabi
;;
+ *)
+ host=${mtype}-slackware-linux
+ ;;
esac
# Deriving /etc/gtk-3.0/$host location