2 # m17n-db -- print information about the m17n database.
4 # National Institute of Advanced Industrial Science and Technology (AIST)
5 # Registration Number H15PRO112
6 # See the end for copying conditions.
13 echo "Usage: $0 [ OPTIONS ] [ TAG0 [ TAG1 [ TAG2 [ TAG3 ] ] ] ]"
15 echo " -h, --help Print this information."
16 echo " -v, --version Print the version number."
17 echo " -l, --locate Print absolute pathnames of database files."
18 echo " TAG0 through TAG3 specifies the tags of the database."
19 echo "With no options, print the installed directory name."
22 if test $# -gt 0; then
24 -h | --help) help; exit 0;;
25 -v | --version) echo "@VERSION@"; exit 0;;
26 -l | --locate) DIRFILE="$datadir/m17n/mdb.dir"; shift;;
31 if test -z "$DIRFILE" ; then
36 if test ! -f "$DIRFILE"; then
37 echo "Can't find the m17n database directory file \"$DIRFILE\"!"
57 sed -n "/${TAG}/ s,[^\"]*\"\([^\"]*\)\".*$,\1,p" < $DIRFILE |\
58 sed -e "/^[^/]/ s,\(.*\),$datadir/\1,"
63 /***en @page m17n-db Print information about the m17n database */
64 /***ja @page m17n-db m17n ¥Ç¡¼¥¿¥Ù¡¼¥¹¤Î¾ðÊó¤òɽ¼¨ */
67 @section m17n-db-synopsis SYNOPSIS
69 m17n-db [ OPTIONS ] [ TAG0 [ TAG1 [ TAG2 [ TAG3 ] ] ] ]
71 @section m17n-db-description DESCRIPTION
73 The shell script m17n-db prints information about the m17n database.
75 The arguments OPTIONS has the following meanings.
78 Print this information.
80 Print the version number.
82 Print absolute pathnames of database files.\n
83 TAG0 through TAG3 specifies the tags of the database.
85 With no arguments, print where the m17n database is installed. */
89 # National Institute of Advanced Industrial Science and Technology (AIST)
90 # Registration Number H15PRO112
92 # This file is part of the m17n database; a sub-part of the m17n
95 # The m17n library is free software; you can redistribute it and/or
96 # modify it under the terms of the GNU Lesser General Public License
97 # as published by the Free Software Foundation; either version 2.1 of
98 # the License, or (at your option) any later version.
100 # The m17n library is distributed in the hope that it will be useful,
101 # but WITHOUT ANY WARRANTY; without even the implied warranty of
102 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
103 # Lesser General Public License for more details.
105 # You should have received a copy of the GNU Lesser General Public
106 # License along with the m17n library; if not, write to the Free
107 # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA