4 # $MANROOT (想定しているのは checkout してきた JM CVS リポジトリ の
5 # (JM/manual/) 以下にある */translation_list を見て、 */release/man?
6 # 以下に .so リンクのファイルを作るスクリプト.
8 $TRANSLIST = "translation_list";
12 if (@ARGV < 1) {die "$0 manroot\n"};
15 unless (-d $MANROOT) {die "$MANROOT does not exist\n"};
17 open(RL,"cat `find $MANROOT -name $TRANSLIST` |");
22 # ※:yp-tools:2.3:1998/05/??:ypchfn:1:yppasswd:1:
33 if (-d "$MANROOT/$pkg/release/man$psec") {
34 $MANDIR = "$MANROOT/$pkg/release";
35 } elsif (-d "$MANROOT/$pkg/man$psec") {
36 $MANDIR = "$MANROOT/$pkg";
38 print "Warning no man? directories are found at $pkg/\n";
41 $pfile = "$MANDIR/man$psec/$pname.$psec";
43 print "Warning: $pfile does not exist\n";
47 unless (-d "$MANDIR/man$lsec") {system "mkdir -p $MANDIR/man$lsec";}
48 $lfile = "$MANDIR/man$lsec/$lname.$lsec";
50 print "skip $lfile (already exists)\n";
53 system "echo .so man$psec/$pname.$psec > $lfile";
54 print "make $lfile as an .so link\n"