~ubuntu-branches/ubuntu/saucy/naist-jdic/saucy

« back to all changes in this revision

Viewing changes to debian/naist-jdic.postinst

  • Committer: Package Import Robot
  • Author(s): Nobuhiro Iwamatsu
  • Date: 2012-07-10 06:10:00 UTC
  • mfrom: (13.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20120710061000-749yu52fy94p0lxb
Tags: 1:0.4.3-3.1
* Non-maintainer upload.
* debian/naist-jdic{,-utf8}.postinst
  - deal with path changes with MultiArch (Closes: #679195)
  - Don't use dpkg-architecture. Use chasen-config instead. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
chasenrc="${chasendir}/chasenrc"
12
12
dictdir="${chasendir}/dic/naist-jdic"
13
13
 
14
 
 
15
14
srcdir=${dictdir}
16
15
destdir="/var/lib/chasen/dic/naist-jdic"
17
16
GENDATA="matrix.cha table.cha chadic.da chadic.lex chadic.dat"
22
21
 
23
22
#   for matrix.cha table.cha
24
23
    [ -d ${srcdir} ] && [ -d ${destdir} ] || exit 1
25
 
    cd ${srcdir} && /usr/lib/`dpkg-architecture -qDEB_BUILD_MULTIARCH`/chasen/makemat -i e
 
24
    cd ${srcdir} && `chasen-config --mkchadic`/makemat -i e
26
25
 
27
26
#   for chadic.da chadic.lex chadic.dat
28
27
    [ -d "${srcdir}" ] && [ -d "${destdir}" ] || exit 1
29
 
    cd ${srcdir} && /usr/lib/`dpkg-architecture -qDEB_BUILD_MULTIARCH`/chasen/makeda -i e chadic *.dic 
 
28
    cd ${srcdir} && `chasen-config --mkchadic`/makeda -i e chadic *.dic 
30
29
 
31
30
    for i in `ls ${srcdir}/*`; do ln -s $i ${destdir}; done
32
31