File: make-mazegaki

package info (click to toggle)
t-code 1%3A2.0beta9-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,632 kB
  • ctags: 507
  • sloc: lisp: 7,176; sh: 488; ansic: 440; perl: 270; makefile: 116
file content (22 lines) | stat: -rw-r--r-- 512 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

TEMPDIC=/tmp/make-mazegaki.$$
MAZEGAKIDIR=/usr/lib/make-mazegaki

if [ ! -f certain ]; then
    echo "certain: No such file."
    exit 1
elif [ ! -f uncertain ]; then
    echo "uncertain: No such file."
    exit 1
fi

$MAZEGAKIDIR/reduce certain uncertain < $MAZEGAKIDIR/pd_kihon.yom > $TEMPDIC
$MAZEGAKIDIR/combine $MAZEGAKIDIR/greece.maz $MAZEGAKIDIR/jukujiku.maz \
    $TEMPDIC > ./mazegaki.dic

rm -f $TEMPDIC

echo
echo "mazegaki.dic created."
echo "Move this file to your tcode-data-directory."