~ubuntu-branches/ubuntu/hardy/uim/hardy

« back to all changes in this revision

Viewing changes to debian/im-switch/uim_tcode

  • Committer: Bazaar Package Importer
  • Author(s): Steinar H. Gunderson
  • Date: 2006-07-06 22:17:24 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060706221724-6sobw1fcsxj647hp
Tags: 1:1.1.0-1.2
* Non-maintainer upload.
* Added -Wno-cast-align to CFLAGS, as per the RM's recommendations:

  < vorlon> Sesse: -Wno-cast-align and to hell with it :P

  Really fixes FTBFS. (Really Closes: #375081)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
XIM=uim
2
 
XIM_PROGRAM=/usr/bin/uim-xim
3
 
XIM_ARGS=
4
 
GTK_IM_MODULE=uim
5
 
ENGINE=tcode
6
 
 
7
 
if [ -r "$HOME/.uim" ]; then
8
 
  TMPFILE=$(mktemp) || exit 1
9
 
  if [ "$(grep "; IM-SWITCH VALUE" $HOME/.uim)" ]; then
10
 
    sed "s/(define default-im-name '[^)]*) ; IM-SWITCH VALUE/(define default-im-name '$ENGINE) ; IM-SWITCH VALUE/" < $HOME/.uim > $TMPFILE
11
 
  else
12
 
    cat $HOME/.uim > $TMPFILE
13
 
    if [ "$(grep -E "^\(define[[:space:]]+default-im-name[[:space:]]" $HOME/.uim)" ]; then
14
 
      echo "; (define default-im-name '$ENGINE) ; IM-SWITCH VALUE" >> $TMPFILE
15
 
    else
16
 
      echo "(define default-im-name '$ENGINE) ; IM-SWITCH VALUE" >> $TMPFILE
17
 
    fi
18
 
  fi
19
 
  mv $TMPFILE $HOME/.uim
20
 
else
21
 
  echo "(define default-im-name '$ENGINE) ; IM-SWITCH VALUE" > $HOME/.uim
22
 
fi