From c036b328c8ae9b14d2760bafd3533fd0bf4e8161 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 9 Jun 2014 15:29:49 +0800 Subject: add ibus-setup-libzhuyin script --- setup/Makefile.am | 5 +++++ setup/ibus-setup-libzhuyin.in | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 setup/ibus-setup-libzhuyin.in (limited to 'setup') 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 +# +# 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 $@ + -- cgit