OSDN Git Service

*** empty log message ***
authorRei FURUKAWA <rei_furukawa@users.sourceforge.jp>
Sun, 6 Oct 2002 08:44:09 +0000 (08:44 +0000)
committerRei FURUKAWA <rei_furukawa@users.sourceforge.jp>
Sun, 6 Oct 2002 08:44:09 +0000 (08:44 +0000)
INSTALL [new file with mode: 0644]
INSTALL.j [new file with mode: 0644]
make_test.pl [new file with mode: 0644]

diff --git a/INSTALL b/INSTALL
new file mode 100644 (file)
index 0000000..e0a8433
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1,27 @@
+INSTALL
+
+           Sun Sep  8 14:11:16 JST 2002
+
+See Makefile, check
+    CC
+    CFLAGS
+    PERL
+are correct. Then do
+    make
+It should work on Linux, Solaris, Mac OS X.
+
+If mkstemp is not in the library, comment out
+#define OVERWRITE in config.h
+
+To make Perl module, do
+    make perl
+it creates NKF.mod. Or you can perform standard 
+     perl Makefile.PL; make
+in NKF.mod. It should work above Perl 5. Perl 5.6 or Perl 5.8
+is checked.
+
+You can do test,
+  make test 
+both in here and NKF.mod.
+
+Shinji KONO kono@ie.u-ryukyu.ac.jp
diff --git a/INSTALL.j b/INSTALL.j
new file mode 100644 (file)
index 0000000..51cdc40
--- /dev/null
+++ b/INSTALL.j
@@ -0,0 +1,23 @@
+INSTALL\e$B$N;EJ}\e(B
+
+           Sun Sep  8 14:11:16 JST 2002
+
+Makefile \e$B$,$"$k$N$G!"\e(B
+    CC
+    CFLAGS
+    PERL
+\e$B$,@5$7$$$+$I$&$+$r3NG'$7$F!"\e(B
+    make
+\e$B$7$F$/$@$5$$!#\e(BLinux, Solaris, Mac OS X \e$B$GF0:n3NG'$7$F$$$^$9!#\e(B
+
+mkstemp \e$B$,$J$$>l9g$O!"\e(Bconfig.h \e$B$N\e(B #define OVERWRITE \e$B$r%3%a%s%H%"%&%H\e(B
+\e$B$7$F$/$@$5$$!#\e(B
+
+Perl \e$B%b%8%e!<%k$r:n$k$K$O!"\e(B
+    make perl
+\e$B$G$9!#\e(BNKF.mod \e$B2<$K$G$-$^$9!#$=$A$i$G!"\e(Bperl Makefile.PL; make
+\e$B$G$b\e(BOk\e$B!#\e(B Perl 5 \e$B0J>e$GF0:n$7$^$9!#\e(B5.6, 5.8 \e$B$GF0:n3NG'$7$F$$$^$9!#\e(B
+
+make test \e$B$G%F%9%H$,9T$o$l$^$9!#\e(BNKF.mod \e$B$G$b\e(B make test
+\e$B$,2DG=!#\e(B
+
diff --git a/make_test.pl b/make_test.pl
new file mode 100644 (file)
index 0000000..e743ad4
--- /dev/null
@@ -0,0 +1,27 @@
+#!/usr/bin/perl
+while ( <test_data/*.cmd> ) {
+    $file = $_; 
+    $test = $file; $test =~ s/\.cmd$//;
+    $out = $test.".out"; $out = `cat $out`;
+    $in = $test.".in"; $in = `cat $in`;
+    $opt = `cat $file`; chop($opt);
+
+    $inpack = pack('u',$in); chop($inpack);
+    $outpack = pack('u',$out); chop($outpack);
+
+print << "EOFEOF";
+# $test
+
+\$example{'$test'} = unpack('u',<<'eofeof');
+$inpack
+eofeof
+
+\$example{'$test.ans'} = unpack('u',<<'eofeof');
+$outpack
+eofeof
+
+print "$test    ";
+    \&test("\$nkf $opt",\$example{'$test'},\$example{'$test.ans'});
+EOFEOF
+
+}