~ubuntu-branches/ubuntu/vivid/dbskkd-cdb/vivid

« back to all changes in this revision

Viewing changes to skktocdbm.sh

  • Committer: Bazaar Package Importer
  • Author(s): Tatsuya Kinoshita
  • Date: 2009-02-16 21:54:19 UTC
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20090216215419-by00ricwyn2pkjct
Tags: upstream-2.00
ImportĀ upstreamĀ versionĀ 2.00

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
 
# $Id: skktocdbm.sh,v 1.2 1998/12/12 11:11:30 kenji Exp $
3
 
# Converting SKK Dictionaty to cdbmake-acceptable form
 
2
# Converting SKK Dictionary to cdbmake-acceptable form
4
3
# Originally by D. J. Bernstein's 12tocdbm.sh
5
4
# modified by Kenji Rikitake
6
5
# bugfix of truncated strings by Hideto Kihara
7
 
awk '
 
6
# bugfix of locale by Tatsuya Kinoshita
 
7
LC_ALL=C awk '
8
8
  /^[^;]/ {
9
9
    s = substr($0, index($0, " ") + 1)
10
10
    print "+" length($1) "," length(s) ":" $1 "->" s