summaryrefslogtreecommitdiffstats
path: root/setup
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2014-06-09 15:29:49 +0800
committerPeng Wu <alexepico@gmail.com>2014-06-09 15:29:49 +0800
commitc036b328c8ae9b14d2760bafd3533fd0bf4e8161 (patch)
treeb59e4931797b96c3225c6e74fae45da83083a7b7 /setup
parent197cb5ab2948b8226d7d077d50ed1d75902fd73e (diff)
downloadibus-libzhuyin-c036b328c8ae9b14d2760bafd3533fd0bf4e8161.tar.gz
ibus-libzhuyin-c036b328c8ae9b14d2760bafd3533fd0bf4e8161.tar.xz
ibus-libzhuyin-c036b328c8ae9b14d2760bafd3533fd0bf4e8161.zip
add ibus-setup-libzhuyin script
Diffstat (limited to 'setup')
-rw-r--r--setup/Makefile.am5
-rw-r--r--setup/ibus-setup-libzhuyin.in32
2 files changed, 37 insertions, 0 deletions
diff --git a/setup/Makefile.am b/setup/Makefile.am
index ba4c08b..bf626df 100644
--- a/setup/Makefile.am
+++ b/setup/Makefile.am
@@ -26,12 +26,17 @@ setup_libzhuyin_PYTHON = \
setup_libzhuyindir = $(datadir)/ibus-libzhuyin/setup
+libexec_SCRIPTS = \
+ ibus-setup-libzhuyin \
+ $(NULL)
+
CLEANFILES = \
*.pyc \
$(NULL)
EXTRA_DIST = \
config.py.in \
+ ibus-setup-libzhuyin.in \
$(NULL)
diff --git a/setup/ibus-setup-libzhuyin.in b/setup/ibus-setup-libzhuyin.in
new file mode 100644
index 0000000..1dd5238
--- /dev/null
+++ b/setup/ibus-setup-libzhuyin.in
@@ -0,0 +1,32 @@
+#!/bin/sh
+# vim:set noet ts=4:
+#
+# ibus-tmpl - The Input Bus template project
+#
+# Copyright (c) 2007-2008 Peng Huang <shawn.p.huang@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+datarootdir=@datarootdir@
+pkgdatadir=@prefix@/share/@PACKAGE@
+export IBUS_PREFIX=@prefix@
+export IBUS_DATAROOTDIR=@datarootdir@
+export IBUS_LOCALEDIR=@localedir@
+export IBUS_PKGDATADIR=@prefix@/share/@PACKAGE@
+cd @prefix@/share/@PACKAGE@/setup/
+exec python main.py $@
+