--- skktools-1.2+0.20061004.orig/skkdic-expr.c +++ skktools-1.2+0.20061004/skkdic-expr.c @@ -92,6 +92,7 @@ char file_name[256]; char okuri_tail_name[256]; char okuri_head_name[256]; +char tmpsubdir[256]; /* 作業用データベース */ DBM *db; @@ -127,28 +128,28 @@ char dir_name[256]; db_remove_file(file_name); - sprintf(pag_name, "%s.pag", file_name); + snprintf(pag_name, sizeof(pag_name), "%s.pag", file_name); db_remove_file(pag_name); - sprintf(dir_name, "%s.dir", file_name); + snprintf(dir_name, sizeof(dir_name), "%s.dir", file_name); db_remove_file(dir_name); - sprintf(dir_name, "%s.db", file_name); + snprintf(dir_name, sizeof(dir_name), "%s.db", file_name); db_remove_file(dir_name); if (okurigana_flag) { db_remove_file(okuri_head_name); - sprintf(pag_name, "%s.pag", okuri_head_name); + snprintf(pag_name, sizeof(pag_name), "%s.pag", okuri_head_name); db_remove_file(pag_name); - sprintf(dir_name, "%s.dir", okuri_head_name); + snprintf(dir_name, sizeof(dir_name), "%s.dir", okuri_head_name); db_remove_file(dir_name); - sprintf(dir_name, "%s.db", okuri_head_name); + snprintf(dir_name, sizeof(dir_name), "%s.db", okuri_head_name); db_remove_file(dir_name); db_remove_file(okuri_tail_name); - sprintf(pag_name, "%s.pag", okuri_tail_name); + snprintf(pag_name, sizeof(pag_name), "%s.pag", okuri_tail_name); db_remove_file(pag_name); - sprintf(dir_name, "%s.dir", okuri_tail_name); + snprintf(dir_name, sizeof(dir_name), "%s.dir", okuri_tail_name); db_remove_file(dir_name); - sprintf(dir_name, "%s.db", okuri_tail_name); + snprintf(dir_name, sizeof(dir_name), "%s.db", okuri_tail_name); db_remove_file(dir_name); } } @@ -235,6 +236,7 @@ int signo; { db_remove_files(); + rmdir(tmpsubdir); signal(signo, SIG_DFL); kill(getpid(), signo); } @@ -816,10 +818,16 @@ exit(1); } - sprintf(file_name, "%s/skkdic%d", tmpdir, getpid()); + snprintf(tmpsubdir, sizeof(tmpsubdir), "%s/skkdic%d", tmpdir, getpid()); + if (mkdir(tmpsubdir, 0700)) { + perror(tmpsubdir); + exit(1); + } + tmpdir = tmpsubdir; + snprintf(file_name, sizeof(file_name), "%s/skkdic%d", tmpdir, getpid()); if (okurigana_flag) { - sprintf(okuri_head_name, "%s/skkhead%d", tmpdir, getpid()); - sprintf(okuri_tail_name, "%s/skktail%d", tmpdir, getpid()); + snprintf(okuri_head_name, sizeof(okuri_head_name), "%s/skkhead%d", tmpdir, getpid()); + snprintf(okuri_tail_name, sizeof(okuri_tail_name), "%s/skktail%d", tmpdir, getpid()); } set_signal_handler(); db_make_files(); @@ -845,6 +853,7 @@ } type_out(output); db_remove_files(); + rmdir(tmpsubdir); return 0; } --- skktools-1.2+0.20061004.orig/debian/manpages +++ skktools-1.2+0.20061004/debian/manpages @@ -0,0 +1,6 @@ +debian/skkdic-count.1 +debian/skkdic-expr.1 +debian/skkdic-expr2.1 +debian/skkdic-sort.1 +debian/skk2cdb.1 +debian/update-skkdic.8 --- skktools-1.2+0.20061004.orig/debian/changelog +++ skktools-1.2+0.20061004/debian/changelog @@ -0,0 +1,101 @@ +skktools (1.2+0.20061004-3) unstable; urgency=high + + * skkdic-expr.c: + - Create a temporary subdirectory safely. [CVE-2007-3916] + - Use snprintf() instead of sprintf(). + * debian/control: Build-depends libdb4.6-dev instead of libdb4.3-dev. + (closes: #442670) + + -- Tatsuya Kinoshita Tue, 18 Sep 2007 21:04:47 +0900 + +skktools (1.2+0.20061004-2) unstable; urgency=low + + * debian/rules: Use /usr/bin/gawk instead of /usr/bin/awk for *.awk scripts. + (closes: #430544) + * debian/control: + - Add gawk to Suggests and Description. + - Prefer emacs to emacs21. + * debian/copyright: Update copyright years. + + -- Tatsuya Kinoshita Tue, 26 Jun 2007 21:11:36 +0900 + +skktools (1.2+0.20061004-1) unstable; urgency=low + + * New upstream release. (CVS trunk on 2006-10-04) + * debian/rules: Use "nkf -e" instead of "qkc" for `doc2skk.sh'. + * debian/skkdic-sort.1: Typo fix. + * debian/skk2cdb: Put $OUTFILE in double quotes. + * debian/control (Suggests): Add required packages for `doc2skk.sh', + `chasen, mecab, kakasi, nkf, w3m'. + * debian/control (Description): Revised. + * debian/copyright: Updated. + + -- Tatsuya Kinoshita Thu, 5 Oct 2006 20:44:11 +0900 + +skktools (1.2-3) unstable; urgency=low + + * Install the scripts *.rb, *.scm, *.awk, convert2skk/*, dbm/* and + filters/* into `/usr/share/skktools'. + * Install *.el into `/usr/share/emacs/site-lisp'. + * Install new command `debian/skk2cdb' and the manpage. + * Don't contain `convert2skk/obsolete/skkconv.t'. + * debian/update-skkdic (cdb): Use tinycdb's cdb command instead of the + cdbmake command. + * debian/update-skkdic (cdb): Remove a temporary file when EXIT. + * debian/update-skkdic (cdb): Set LC_ALL to C for awk. + * debian/update-skkdic (make_dic): Display an error message if the file + cannot be created. + * debian/control (Recommends): Add `tinycdb'. + * debian/control (Suggests): Add `ruby, gauche, emacs21 | emacsen'. + * debian/control (Description): Revised. + * debian/README.Debian: New file. + * debian/copyright: Revised. + + -- Tatsuya Kinoshita Sun, 10 Sep 2006 20:45:56 +0900 + +skktools (1.2-2) unstable; urgency=low + + * New maintainer. (closes: #353633) + * debian/rules: Backup upstream's config.sub and config.guess. + * debian/rules (clean): Remove libtool and stamp-*. + * debian/copyright: Clarify copyright holders. + * debian/control (Description): Typo fix. + * debian/control (Standards-Version): 3.6.2 -> 3.7.2. + + -- Tatsuya Kinoshita Sat, 22 Jul 2006 00:34:54 +0900 + +skktools (1.2-1) unstable; urgency=low + + * QA upload. + * New upstream release. + * Package is orphaned (#353633); set maintainer to Debian QA Group. + * Link against libdb4.3 to match skksearch. Closes: #289309. + * Automatically update config.sub and config.guess from autotools-dev. + Closes: #342449. + * Switch to debhelper 5. + * debian/changelog: Remove obsolete Emacs local variables. + * debian/rules: Add support for DEB_BUILD_OPTIONS=noopt. + * debian/watch: Add. + * Conforms to Standards version 3.6.2. + + -- Matej Vela Sun, 9 Apr 2006 12:15:36 +0200 + +skktools (1.1-1) unstable; urgency=low + + * New upstream release. + * Fixed the extended description. (Closes: Bug#209892) + + -- Takao KAWAMURA Thu, 18 Sep 2003 15:31:09 +0900 + +skktools (1.0-2) unstable; urgency=low + + * Build-Depends: libdb3-dev. (Closes: Bug#100789) + + -- Takao KAWAMURA Sat, 16 Jun 2001 23:31:56 +0900 + +skktools (1.0-1) unstable; urgency=low + + * Initial Release. + * Renamed from skk-dictools. + + -- Takao KAWAMURA Sun, 10 Dec 2000 09:48:42 +0900 --- skktools-1.2+0.20061004.orig/debian/compat +++ skktools-1.2+0.20061004/debian/compat @@ -0,0 +1 @@ +5 --- skktools-1.2+0.20061004.orig/debian/control +++ skktools-1.2+0.20061004/debian/control @@ -0,0 +1,27 @@ +Source: skktools +Section: utils +Priority: optional +Maintainer: Tatsuya Kinoshita +Build-Depends: debhelper (>= 5), autotools-dev, libdb4.6-dev, libglib2.0-dev, pkg-config +Standards-Version: 3.7.2 + +Package: skktools +Architecture: any +Depends: ${shlibs:Depends} +Recommends: tinycdb +Replaces: skk-dictools +Conflicts: skk-dictools +Suggests: skkdic, skkdic-extra, emacs | emacsen, gawk, ruby, gauche, chasen, mecab, kakasi, nkf, w3m +Description: SKK dictionary maintenance tools + This package provides tools to maintain dictionary files for SKK + Japanese input systems. + . + SKK dictionary files are provided by the skkdic package and the + skkdic-extra package. You can make a local dictionary file from + them. + . + If you want to convert a dictionary file to cdb (DJB's constant + database), install the tinycdb package. To use the optional scripts, + install the required tools, such as gawk, ruby, gauche, etc. + . + Homepage: http://openlab.jp/skk/ --- skktools-1.2+0.20061004.orig/debian/copyright +++ skktools-1.2+0.20061004/debian/copyright @@ -0,0 +1,37 @@ +This package was debianized by + 2000-2003 Takao KAWAMURA + 2006 Matej Vela + 2006, 2007 Tatsuya Kinoshita + +The upstream source can be downloaded from + http://openlab.ring.gr.jp/skk/tools/ + +Copyright (C) 2001, 2002 SKK Development Team +Copyright (C) 1994-2002 + Hironobu Takahashi, Masahiko Sato, Kiyotaka Sakai, Kenji Yabuuchi +Copyright (C) 2005-2006 MITA Yuusuke +Copyright (C) 1998-2003 NAKAJIMA Mikio +Copyright (C) 2003-2004 Kimura Fuyuki +Copyright (C) 2002 Kentaro Fukuchi +Copyright (C) 1992-2003 Free Software Foundation, Inc. + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +with the Debian distribution in file `/usr/share/common-licenses/GPL'; +if not, write to the Free Software Foundation, Inc., 51 Franklin St, +Fifth Floor, Boston, MA 02110-1301, USA. + +On Debian systems, the complete text of the GNU General Public License, +version 2, can be found in `/usr/share/common-licenses/GPL-2'. + +The Debian packaging is distributed under the same conditions as the +upstream, see above. --- skktools-1.2+0.20061004.orig/debian/docs +++ skktools-1.2+0.20061004/debian/docs @@ -0,0 +1,7 @@ +README +READMEs/FAQ.txt +READMEs/README.C +READMEs/README.filters +READMEs/README.perl +READMEs/README.skkdic-diff +READMEs/README.skkdic-expr2 --- skktools-1.2+0.20061004.orig/debian/rules +++ skktools-1.2+0.20061004/debian/rules @@ -0,0 +1,101 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +export CFLAGS = -Wall -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +build: build-stamp +build-stamp: + dh_testdir + + for f in config.sub config.guess; do \ + if [ ! -f $${f}.BAK ]; then mv -f $${f} $${f}.BAK; fi; \ + done + ln -sf /usr/share/misc/config.sub /usr/share/misc/config.guess . + + ./configure --prefix=/usr + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + [ ! -f Makefile ] || $(MAKE) distclean + rm -f libtool stamp-* + + for f in config.sub config.guess; do \ + if [ -f $${f}.BAK ]; then mv -f $${f}.BAK $${f}; fi; \ + done + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) install prefix=$(CURDIR)/debian/skktools/usr + + dh_install debian/update-skkdic usr/sbin + dh_install debian/skk2cdb usr/bin + dh_install *.el usr/share/emacs/site-lisp + + for f in *.awk *.rb *.scm \ + convert2skk/*.pl \ + convert2skk/*.rb \ + convert2skk/*.sh \ + convert2skk/*.awk \ + convert2skk/*.sed \ + convert2skk/adddummy \ + convert2skk/list2skk \ + convert2skk/pubdic2list \ + convert2skk/removedummy \ + convert2skk/skk2list \ + dbm/makedbmdic* filters/*.rb; do \ + touch "debian/skktools/usr/share/skktools/$${f}"; \ + head -1 "$${f}" | grep "^#!" || \ + case "$${f}" in \ + *.awk) \ + echo '#!/usr/bin/gawk -f' >>"debian/skktools/usr/share/skktools/$${f}" ;; \ + *.sed) \ + echo '#!/bin/sed -f' >>"debian/skktools/usr/share/skktools/$${f}" ;; \ + esac; \ + sed -r -e 's!/usr/local!/usr!g;s!bin/jperl[0-9]?!bin/perl!g;s!"qkc"!"nkf -e" #"qkc"!g' "$${f}" >>"debian/skktools/usr/share/skktools/$${f}"; \ + chmod 755 "debian/skktools/usr/share/skktools/$${f}"; \ + done + + cp convert2skk/README debian/skktools/usr/share/doc/skktools/README.convert2skk + cp READMEs/read.me debian/skktools/usr/share/doc/skktools/README.jperl + +# Build architecture-independent files here. +binary-indep: build install + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- skktools-1.2+0.20061004.orig/debian/skkdic-count.1 +++ skktools-1.2+0.20061004/debian/skkdic-count.1 @@ -0,0 +1,21 @@ +.TH SKKDIC-COUNT 1 +.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection +.\" other parms are allowed: see man(7), man(1) +.SH NAME +skkdic-count \- count entries in skk dictionary files +.SH SYNOPSIS +.B skkdic-count +.I "[file] ..." +.SH "DESCRIPTION" +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +.PP +.B skkdic-count +is a program that counts entries in each +.B file. +With no +.B file, +read standard input. +.SH AUTHOR +This manual page was written by Takao KAWAMURA , +for the Debian GNU/Linux system (but may be used by others). --- skktools-1.2+0.20061004.orig/debian/skkdic-expr.1 +++ skktools-1.2+0.20061004/debian/skkdic-expr.1 @@ -0,0 +1,36 @@ +.TH SKKDIC-EXPR 1 +.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection +.\" other parms are allowed: see man(7), man(1) +.SH NAME +skkdic-expr \- manipulate skk dictionaries +.SH SYNOPSIS +.B skkdic-expr +.I "[-d dir] [-o file] [-O] jisho1 {+-} jisho2 ..." +.SH "DESCRIPTION" +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +.PP +.B skkdic-expr +is a program that merges/subtracts dictionary files. +.SH OPTIONS +.TP +.B \-d dir +Use +.B dir +as a temporary directory instead of /tmp. +.TP +.B \-o file +Output the result to +.B file +instead of standard output. +.TP +.B \-O +Leave "okurigana" entries in the result. +.SH EXAMPLES +.TP +.B skkdic-expr jisho1 + jisho2 - jisho3 +Merge entries in jisho1 and in jisho2, remove entries in jisho3, and +print the result to standard output. +.SH AUTHOR +This manual page was written by Takao KAWAMURA , +for the Debian GNU/Linux system (but may be used by others). --- skktools-1.2+0.20061004.orig/debian/skkdic-expr2.1 +++ skktools-1.2+0.20061004/debian/skkdic-expr2.1 @@ -0,0 +1,36 @@ +.TH SKKDIC-EXPR2 1 +.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection +.\" other parms are allowed: see man(7), man(1) +.SH NAME +skkdic-expr2 \- manipulate skk dictionaries +.SH SYNOPSIS +.B skkdic-expr2 +.I "[-d dir] [-o file] [-O] jisho1 {+-} jisho2 ..." +.SH "DESCRIPTION" +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +.PP +.B skkdic-expr2 +is a program that merges/subtracts dictionary files. +.SH OPTIONS +.TP +.B \-d dir +Use +.B dir +as a temporary directory instead of /tmp. +.TP +.B \-o file +Output the result to +.B file +instead of standard output. +.TP +.B \-O +Leave "okurigana" entries in the result. +.SH EXAMPLES +.TP +.B skkdic-expr2 jisho1 + jisho2 - jisho3 +Merge entries in jisho1 and in jisho2, remove entries in jisho3, and +print the result to standard output. +.SH AUTHOR +This manual page was written by Takao KAWAMURA , +for the Debian GNU/Linux system (but may be used by others). --- skktools-1.2+0.20061004.orig/debian/skkdic-sort.1 +++ skktools-1.2+0.20061004/debian/skkdic-sort.1 @@ -0,0 +1,17 @@ +.TH SKKDIC-SORT 1 +.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection +.\" other parms are allowed: see man(7), man(1) +.SH NAME +skkdic-sort \- sort skk dictionary +.SH SYNOPSIS +.B skkdic-sort +.SH "DESCRIPTION" +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +.PP +.B skkdic-sort +is a program that reads an skk dictionary from standard input and +prints a sorted dictionary to standard output. +.SH AUTHOR +This manual page was written by Takao KAWAMURA , +for the Debian GNU/Linux system (but may be used by others). --- skktools-1.2+0.20061004.orig/debian/update-skkdic +++ skktools-1.2+0.20061004/debian/update-skkdic @@ -0,0 +1,98 @@ +#!/bin/bash + +skkdir=/usr/share/skk +base=SKK-JISYO +suffix=local +file="$skkdir/$base.$suffix" +priority=100 + +#### print usage and exit. +#### never return +usage () +{ + echo "Usage: $0 [-c] dictionary... (Merge dictionaries) + $0 -d (update-alternatives --remove) + $0 -u (update-alternatives --install)" 1>&2 + exit 1 +} + +#### read a dictionary from stdin, write a cdb-style dictionary to $1. +cdb () +{ + CDB="`which cdb`" || CDB="" + if [[ -z "$CDB" ]]; then + echo "${0##*/}: tinycdb's cdb command not found" >&2 + exit 1 + fi + tmpf=`tempfile -p skk_ -d "$skkdir"` + trap "if [[ -e "$tmpf" ]]; then rm "$tmpf"; exit 1; fi" EXIT INT TERM + LC_ALL=C awk ' + /^[^;]/ { + s = substr($0, index($0, " ") + 1) + print "+" length($1) "," length(s) ":" $1 "->" s + } + END { + print "" + } + ' | "$CDB" -c -t $tmpf $1 +} + +#### merge $* into a dictionary +make_dic () +{ + if [[ $cdb == ".cdb" ]]; then + tailcmd="|$0 __CDB__ $file" + else + tailcmd=">|$file" + fi + bash -c "skkdic-expr `(echo \"$@\" | sed 's/ / + /g' )` | skkdic-sort $tailcmd" + if [[ ! -f $file ]]; then + echo "${0##*/}: cannot create $file" >&2 + exit 1 + fi + chmod 644 $file +} + +#### update-alternatives --install +#### never return +update () +{ + exec update-alternatives --install $skkdir/$base$cdb $base$cdb $file $priority +} + +#### MAIN +if [[ $1 == __CDB__ ]]; then # called by myself + cdb $2 + exit 0 +fi + +cdb="" +set -- `getopt cduh "$@"` +for i; do + case "$i" in + -c ) cdb=".cdb"; file=$file$cdb; shift;; + -d ) exec update-alternatives --remove $base$cdb $file;; + -u ) update;; + -h ) usage;; + -- ) shift; break;; + esac +done + +if (( $# == 0 )); then + usage +fi + +for i; do + if [[ ! -f $i ]]; then + echo "$0: $i: can't open." 1>&2 + exit 1 + fi +done +if [[ ! -w $skkdir ]]; then + echo "$0: $skkdir: can't write. Are you root?" 1>&2 + exit 1 +fi + +make_dic "$@" + +update --- skktools-1.2+0.20061004.orig/debian/update-skkdic.8 +++ skktools-1.2+0.20061004/debian/update-skkdic.8 @@ -0,0 +1,32 @@ +.TH UPDATE-SKKDIC 8 +.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection +.\" other parms are allowed: see man(7), man(1) +.SH NAME +update-skkdic \- make a local skk dictionariy +.SH SYNOPSIS +.B update-skkdic +.I [-c] dictionary... +.br +.B update-skkdic +.I -d +.br +.B update-skkdic +.I -u +.SH "DESCRIPTION" +.B update-skkdic +is a program that make a local SKK dictionary as +/usr/share/skk/SKK-JISYO.local and install the alternative for +SKK-JISYO or SKK-JISYO.cdb. +.SH OPTIONS +.TP +.B \-c +Make a cdb style dictionary as /usr/share/skk/SKK-JISYO.local.cdb. +.TP +.B \-d +Remove the alternative for SKK-JISYO or SKK-JISYO.cdb. +.TP +.B \-u +Only Install the alternative for SKK-JISYO or SKK-JISYO.cdb. +.SH AUTHOR +This manual page was written by Takao KAWAMURA , +for the Debian GNU/Linux system. --- skktools-1.2+0.20061004.orig/debian/watch +++ skktools-1.2+0.20061004/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://openlab.ring.gr.jp/skk/tools/skktools-(.*)\.tar\.gz --- skktools-1.2+0.20061004.orig/debian/skk2cdb +++ skktools-1.2+0.20061004/debian/skk2cdb @@ -0,0 +1,44 @@ +#!/bin/sh +# skk2cdb: convert SKK dictionary file to cdb +# Author: Tatsuya Kinoshita +# Unlimited permission is granted to use, copy, distribute and/or modify +# this file. There is NO WARRANTY. +set -e + +if [ $# -gt 2 ]; then + echo "usage: ${0##*/} [ SKK-JISYO [SKK-JISYO-CDB]]" >&2 + exit 1 +fi + +CDB="`which cdb`" || CDB="" +if [ -z "$CDB" ]; then + echo "${0##*/}: tinycdb's cdb command not found" >&2 + exit 1 +fi + +INFILE="$1" +OUTFILE="$2" + +if [ -z "$INFILE" ]; then + INFILE=/dev/stdin +fi +if [ -z "$OUTFILE" ]; then + OUTFILE=/dev/stdout +fi + +trap 'rm -f "$TMPFILE" "$TMPFILE2"' EXIT INT TERM +TMPFILE=`tempfile -p skk_ -s .tmp` +TMPFILE2=`tempfile -p skk_ -s .tmp.cdb` + +LC_ALL=C awk ' + /^[^;]/ { + s = substr($0, index($0, " ") + 1) + print "+" length($1) "," length(s) ":" $1 "->" s + } + END { + print "" + } +' "$INFILE" | "$CDB" -c -t "$TMPFILE" "$TMPFILE2" +cat "$TMPFILE2" > "$OUTFILE" + +exit 0 --- skktools-1.2+0.20061004.orig/debian/dirs +++ skktools-1.2+0.20061004/debian/dirs @@ -0,0 +1,4 @@ +usr/share/doc/skktools +usr/share/skktools/convert2skk +usr/share/skktools/dbm +usr/share/skktools/filters --- skktools-1.2+0.20061004.orig/debian/skk2cdb.1 +++ skktools-1.2+0.20061004/debian/skk2cdb.1 @@ -0,0 +1,27 @@ +.TH SKK2CDB 1 +.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection +.\" other parms are allowed: see man(7), man(1) +.SH NAME +skk2cdb \- convert SKK dictionary file to cdb +.SH SYNOPSIS +.B skk2cdb +[SKK-JISYO [SKK-JISYO-CDB]] +.SH DESCRIPTION +skk2cdb converts SKK dictionary plain text file to cdb (DJB's constant database) from standard input (or SKK-JISYO) to standard output (or SKK-JISYO-CDB). +.PP +This command requires tinycdb's `cdb' command. +.SH EXAMPLES +.SS Convert SKK-JISYO.foobar to SKK-JISYO.foobar.cdb +.na +.nf +skk2cdb < SKK-JISYO.foobar > SKK-JISYO.foobar.cdb +or +skk2cdb SKK-JISYO.foobar SKK-JISYO.foobar.cdb +.fi +.ad +.SH BUGS +This command is provided by Debian. +It is not integrated in the upstream source. +.\" This manual page is written by Tatsuya Kinoshita . +.\" Unlimited permission is granted to use, copy, distribute and/or modify +.\" this file. There is NO WARRANTY. --- skktools-1.2+0.20061004.orig/debian/README.Debian +++ skktools-1.2+0.20061004/debian/README.Debian @@ -0,0 +1,14 @@ +skktools for Debian +------------------- + +The C programs are installed into `/usr/bin'. + +skk-xml.el is installed into `/usr/share/emacs/site-lisp'. + +The scripts *.rb, *.scm, *.awk, convert2skk/*, dbm/* and filters/* are +installed into `/usr/share/skktools'. + +Also, this Debian package provides the commands `update-skkdic' and +`skk2cdb'. See also the manpages. + + -- Tatsuya Kinoshita , Sun, 10 Sep 2006 20:14:52 +0900