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 # 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 mkdir -p $RPM_BUILD_ROOT%{_datadir}/ibus/engine
for i in $RPM_BUILD_ROOT%{_datadir}/m17n/*.mim; do 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 done
# these are not real engines # these are not real engines
rm -f $RPM_BUILD_ROOT%{_datadir}/ibus/engine/m17n-{cjk-util,global}.engine rm -f $RPM_BUILD_ROOT%{_datadir}/ibus/engine/m17n-{cjk-util,global}.engine
@ -299,6 +299,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Mon Oct 20 2008 Jens Petersen <petersen@redhat.com> - 1.5.2-4.fc10 * Mon Oct 20 2008 Jens Petersen <petersen@redhat.com> - 1.5.2-4.fc10
- add obsoletes for ibus-m17n subpackages - 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 * 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) - create .engine files for ibus-m17n with m17n-gen-ibus-engine (#466410)

View File

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