~ubuntu-branches/ubuntu/trusty/kde-l10n-km/trusty

« back to all changes in this revision

Viewing changes to debian/build-l10n.sh

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2013-03-06 13:24:42 UTC
  • mfrom: (1.1.61)
  • Revision ID: package-import@ubuntu.com-20130306132442-n25tcn9wu0he780z
Tags: 4:4.10.1-0ubuntu1
New upstream bugfix release 

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
  esac
51
51
}
52
52
 
 
53
function mapKdeCodeToIbusPkg {
 
54
  case `eval "expr \"\$"$1"\" "` in
 
55
    "ko" )
 
56
      eval "$1=\",ibus-hangul\"";;
 
57
    "ja" )
 
58
      eval "$1=\",ibus-anthy\"";;
 
59
    "zh_CN" )
 
60
      eval "$1=\",ibus-pinyin\"";;
 
61
    "zh_TW" )
 
62
      eval "$1=\",ibus-chewing\"";;
 
63
    * )
 
64
      eval "$1=\"\"";;
 
65
  esac
 
66
}
 
67
 
53
68
clean_dld=1
54
69
subset=""
55
70
 
157
172
 
158
173
    ubuntudep=$ubuntucode
159
174
    mapUbuntuNameToDep ubuntudep
 
175
    
 
176
    inputmethodpkg=$kdecode
 
177
    mapKdeCodeToIbusPkg inputmethodpkg
160
178
 
161
179
    # remove any left overs from previous runs
162
180
    rm -r kde-l10n-${ubuntucode}_${VERSION}.orig.tar.xz
185
203
      sed -i "s/km/$ubuntucode/g" $dfile
186
204
      sed -i "s/km/$kdecode/g" $dfile
187
205
      sed -i "s/Khmer/$kdename/g" $dfile
 
206
      if [ -z "$inputmethodpkg" ]; then
 
207
      else
 
208
      fi
188
209
      sed -i "s/# ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !#
189
210
# DO NOT EVEN THINK ABOUT CHANGING THIS FILE DIRECTLY! ! ! !
190
211
# PLEASE USE THE BZR BRANCH AS SEEN IN debian/control