From 3e50834ecf7f6db02675600aecff8eeff988eb7d Mon Sep 17 00:00:00 2001 From: glasseyes Date: Wed, 7 Nov 2018 14:45:53 +0700 Subject: [PATCH] locally installing ibus-keyman component --- linux/scripts/install.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/linux/scripts/install.sh b/linux/scripts/install.sh index 21ee60f677..2f8f3346a0 100755 --- a/linux/scripts/install.sh +++ b/linux/scripts/install.sh @@ -27,7 +27,7 @@ fi if [ -f "/usr/share/ibus/component/kmfl.xml" ] && [ "${SUDOINSTALL}" == "yes" ]; then if grep -Fq "/usr/lib/ibus" /usr/share/ibus/component/kmfl.xml then - echo "component file is ibus-kmfl package version so move it" + echo "component file is in ibus-kmfl package version so move it" echo "run 'sudo make uninstall' to put it back" mv /usr/share/ibus/component/kmfl.xml /usr/share/doc/ibus-kmfl/ else @@ -35,6 +35,18 @@ if [ -f "/usr/share/ibus/component/kmfl.xml" ] && [ "${SUDOINSTALL}" == "yes" ]; fi fi +if [ -f "/usr/share/ibus/component/keyman.xml" ] && [ "${SUDOINSTALL}" == "yes" ]; then + if grep -Fq "/usr/lib/ibus" /usr/share/ibus/component/keyman.xml + then + echo "component file is in ibus-keyman package version so move it" + echo "run 'sudo make uninstall' to put it back" + mv /usr/share/ibus/component/keyman.xml /usr/share/doc/ibus-keyman/ + else + echo "component file is local one so overwrite it" + fi +fi + + cd keyboardprocessor ninja install cd $BASEDIR @@ -82,3 +94,7 @@ if [ -f "/usr/share/doc/ibus-kmfl/kmfl.xml" ] && [ "${SUDOINSTALL}" == "uninstal mv /usr/share/doc/ibus-kmfl/kmfl.xml /usr/share/ibus/component/ fi +if [ -f "/usr/share/doc/ibus-keyman/keyman.xml" ] && [ "${SUDOINSTALL}" == "uninstall" ]; then + echo "putting ibus-keyman package component file back" + mv /usr/share/doc/ibus-keyman/keyman.xml /usr/share/ibus/component/ +fi