fix m17n-gen-ibus-engine to check for lang 't'

This commit is contained in:
Jens Petersen 2008-10-20 01:13:21 +00:00
parent 8225638677
commit a65fcc56f8
2 changed files with 6 additions and 5 deletions

View File

@ -212,10 +212,10 @@ rm $RPM_BUILD_ROOT%{_datadir}/m17n/si-wijesekera.mim
# generate .engine files for ibus-m17n for now
install -p --mode=0755 %SOURCE1 $RPM_BUILD_ROOT/%{_bindir}
install -p --mode=0755 %SOURCE1 $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/ibus/engine
for i in $RPM_BUILD_ROOT%{_datadir}/m17n/*.mim; do
$RPM_BUILD_ROOT/%{_bindir}/m17n-gen-ibus-engine $i $RPM_BUILD_ROOT%{_datadir}/ibus/engine
$RPM_BUILD_ROOT%{_bindir}/m17n-gen-ibus-engine $i $RPM_BUILD_ROOT%{_datadir}/ibus/engine
done
# these are not real engines
rm -f $RPM_BUILD_ROOT%{_datadir}/ibus/engine/m17n-{cjk-util,global}.engine
@ -299,6 +299,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Mon Oct 20 2008 Jens Petersen <petersen@redhat.com> - 1.5.2-4.fc10
- add obsoletes for ibus-m17n subpackages
- fix m17n-gen-ibus-engine to check for lang 't'
* Wed Oct 15 2008 Jens Petersen <petersen@redhat.com> - 1.5.2-3.fc10
- create .engine files for ibus-m17n with m17n-gen-ibus-engine (#466410)

View File

@ -1,10 +1,10 @@
#!/bin/sh
# generates .engine files from m17n mim filenames for ibus-m17n
# generates .engine files from m17n .mim files for ibus-m17n
PROG=`basename $0`
if [ $# -le 1 ]; then
echo "Usage: $PROG <m17n-map.mim> [dir]"
echo "Usage: $PROG <m17n-mim-file> [output-dir]"
exit 1
fi
@ -14,7 +14,7 @@ OUTDIR=${2:-.}
MAP=$(basename $1 .mim)
LANG=$(echo $MAP | sed -e "s/-.*//")
if [ "$LANG" = "latn" ]; then
if grep -q "(input-method t " $FILE; then
LANG=$MAP
fi
if [ "$LANG" = "$MAP" ]; then