summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac1
-rw-r--r--setup/Makefile.am5
-rw-r--r--setup/ibus-setup-libzhuyin.in32
3 files changed, 38 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index fa2fdaf..a94e8ae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -113,6 +113,7 @@ Makefile
src/Makefile
setup/Makefile
setup/config.py
+setup/ibus-setup-libzhuyin
])
AC_OUTPUT
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 $@
+