From owner-FreeBSD-users-jp@jp.freebsd.org  Tue Jan 30 13:33:28 1996
Received: by mail.jp.freebsd.org (8.7.3+2.6Wbeta5/8.7.3)
	id NAA01629; Tue, 30 Jan 1996 13:33:28 +0900 (JST)
Received: by mail.jp.freebsd.org (8.7.3+2.6Wbeta5/8.7.3) with SMTP
	id NAA01622; Tue, 30 Jan 1996 13:33:12 +0900 (JST)
Received: by kyu-cs.csce.kyushu-u.ac.jp (8.6.10+2.4W/6.4JAIN-uucp-1.01)
	id LAA02484; Tue, 30 Jan 1996 11:49:38 +0900
Received: (from kogane@localhost) by kces.koganemaru.co.jp (8.6.11/3.3W9-) id WAA00424; Mon, 29 Jan 1996 22:13:58 +0900
Date: Mon, 29 Jan 1996 22:13:58 +0900
From: Nobuyuki Koganemaru <kogane@kces.koganemaru.co.jp>
Message-Id: <199601291313.WAA00424@kces.koganemaru.co.jp>
To: FreeBSD-users-jp@jp.freebsd.org
Reply-To: FreeBSD-users-jp@jp.freebsd.org
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=19]
X-Sequence: FreeBSD-users-jp 71
Subject: [FreeBSD-users-jp 71] Re: Rn and Trn
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org

$B>.6b4]!w(B[($BM-(B)$B>.6b4]%3%s%T%e!<%?%(%s%8%K%"%j%s%0%5!<%S%9(B]$B$G$9!#(B

>$B$d$^$6$-!w:k6LBg3X(B $B$5$s(B:
>$B%K%e!<%9%j!<%@(Bmnews$B$,7k9=$$$$$H$$$&$N$r$_$F!"(B
>$B;d$b(BFreeBSD$B$K%3%s%Q%$%k!u%$%s%9%H!<%k$7$F$_$^$7$?$,!"B>$N(B
>Sun$B$J$I$N%^%7%s$G$O!"B>$N%K%e!<%9%j!<%@(B(trn)$B$r;H$C$F$$$k$N$G!"(B
>.newsrc$B$J$I$,$&$^$/D4@0$G$-$^$;$s!#(B

>$B8N$K!"(Brn$B$b$7$/$O(Btrn$B$J$I$r%3%s%Q%$%k$7$h$&$H;W$C$F$$$k$s$G$9$,!"(B
>configure$B$rF0$+$7$F$$$k$H$3$m$G!"(Binews$B$O$I$3$K$"$k$H8@$&<ALd$N$H$3$m$+$i(B
>$BA0$K?J$a$^$;$s!#(B
>$B!&$I$&$9$l$P(Btrn$B$r:n$k$3$H$,=PMh$k$s$G$7$g$&$+!)(B

>$B;d(B(kogane) :
>$B%m!<%+%k$J%^%7%s$K(B INN $B$r%$%s%9%H!<%k$7$F(B rn $B$rF0$+$7$F$$$^$9!#(B
>$B$=$l$G$h$m$7$1$l$P!"%$%s%9%H!<%k%a%b$r>R2p$G$-$^$9!#(B

$B%a!<%k$K$F%$%s%9%H!<%k%a%b$r>R2p$7$F$[$7$$$H$N0MMj$,$"$j$^$7$?$N$G!"(B
$BAwIU$7$^$9!#(B

----- $B$3$3$+$i(B -----
rn 4.4 $B$N%$%s%9%H!<%k<j=g(B($BBh#3HG(B)
				$B:n@.(B	$B>.6b4]?.9,(B
				E-Mail:	kogane@kces.koganemaru.co.jp
				$B:n@.F|(B	$BJ?@.(B7$BG/(B(1996$BG/(B)01$B7n(B29$BF|(B ($B7n(B)

$BK\@bL@$NFbMF$O(B FreeBSD(98) 2.0.5R $B$K(B rn 4.4 $B$r%$%s%9%H!<%k$9$k<j=g$r5-=R(B
$B$7$?$b$N$G$9!#(BFreeBSD(98) $B$@$1$G$J$/(B FreeBSD $B%*%j%8%J%k$K$bF1MM$K9T$($^$9!#(B
rn $B$K$OK\Mh$N5!G=$NB>!"(BSubject $B$J$I$K4^$^$l$k(B MIME $B$b=hM}$7$FF|K\8lI=<($G(B
$B$-$k$h$&$K$7$F$$$^$9!#(B
jst_date.c $B$O%K%e!<%9Cf$N3F9q$NF|IU$r(B JST $B$KJQ49$7$FI=<($9$k%b%8%e!<%k$G$9!#(B
$BK>$^$J$$>l9g$O(B
     EXT bool jst INIT(TRUE);				/* -x */
$B$NItJ,$rJQ99$9$k$+4XO"$9$kItJ,$r:o=|$7$F$/$@$5$$!#(B
$B%K%e!<%9%7%9%F%`$H$7$F$O(B INN $B$rA0$b$C$F%$%s%9%H!<%k$7$F$/$@$5$$!#(B
$B%5%$%H8GM-$N=$@5$b9T$C$F2<$5$$!#$3$N$^$^%$%s%9%H!<%k$9$k$H(B
	kces.koganemaru.co.jp $B$N(B
	($BEv<R(B)KOGANEMARU Computer Engineering Service Corporation.
$B$N%K%e!<%9%j!<%@!<$H$J$C$F$7$^$$$^$9!#=$@5$9$kItJ,$O(B
    /etc/organization $B%U%!%$%k$H(B
    config.sh $B%U%!%$%k$N(B
	sitename='kces.koganemaru.co.jp'
	domain='koganemaru.co.jp'
	orgpref='kces'
$B$NItJ,$K$J$j$^$9!#(B
$B$"$H%Z!<%8%c!<(B(pager='/usr/bin/more')$B$H$7$F(B /usr/bin/more $B$r;HMQ$7$F$$$^$9$,!"(B
$B$3$l$OF|K\8lI=<($,$G$-$k$b$N$+F|K\8l$N(B less $B$KCV$-49$($F$/$@$5$$!#(B
FreeBSD 2.0, FreeBSD 2.0.5 $B$N(B more $B$NF|K\8l2=$K$D$$$F$O!";d$,:n@.$7$?%Q%C%A(B
$B$,$"$j$^$9!#$3$l$O0JA0$K(B FreeBSD $B%a!<%j%s%0%j%9%H$d(B fj.os.bsd.freebsd $B$KEj9F(B
$B$7$F$$$^$9!#(B

$BMQ0U$9$k%U%!%$%k(B
	krn3.5.0.2@4.4.4.patch.Z
	rn@4.4.4.tar.Z

1) rn $B$r%3%s%Q%$%k$9$kA0$K(B MIME $B$N%i%$%V%i%j$r:n@.$9$k(B
	mm2.7.tar.gz
	mms0.7.3.tar.gz

	tar xvzf mm2.7.tar.gz
	mkdir mms0.7.3
	cd mms0.7.3
	tar xvzf ../mms0.7.3.tar.gz

	mms0.7.3 $B$N(B Makefile $B$r=$@5$9$k(B
------------------------------------------------------------------------
*** Makefile.orig	Sat Feb 12 22:15:36 1994
--- Makefile	Fri Jun 30 02:27:41 1995
***************
*** 16,22 ****
  #		May 1992, Yutaka Sato <ysato@etl.go.jp>
  #
  
! MMDIR =		../../src
  
  FOOBAR-sun4 =	$$Binding
  STATICFLAG =	FOOBAR${HOST_ARCH}
--- 16,22 ----
  #		May 1992, Yutaka Sato <ysato@etl.go.jp>
  #
  
! MMDIR =		../mm2.7/src
  
  FOOBAR-sun4 =	$$Binding
  STATICFLAG =	FOOBAR${HOST_ARCH}
------------------------------------------------------------------------

	make $B$r<B9T$9$k(B
	$B:G8e$K%(%i!<$H$J$k$,(B libmms.a $B$,$G$-$l$P(BOK$B$J$N$GL5;k$9$k!#(B

2) rn $B$N%U%!%$%k$rE83+$9$k(B

	tar xvzf rn@4.4.4.tar.Z
	cd rn-4.4
	zcat krn3.5.0.2@4.4.4.patch.Z | patch -p1

3) $B%Q%C%A$r$"$F$k(B
------------------------------------------------------------------------
diff -acr rn-4.4.orig/Configure rn-4.4/Configure
*** rn-4.4.orig/Configure	Thu Aug 17 22:59:27 1995
--- rn-4.4/Configure	Thu Jun 29 16:54:03 1995
***************
*** 1291,1297 ****
  define)
      case "$kanji_out_type" in
      define)	dflt=$kanji_out_type;;
!     *)		dflt='(J';;
      esac
      $echo $n "Default kanji-out code ? [$dflt] $c"
      . myread
--- 1291,1297 ----
  define)
      case "$kanji_out_type" in
      define)	dflt=$kanji_out_type;;
!     *)		dflt='(B';;
      esac
      $echo $n "Default kanji-out code ? [$dflt] $c"
      . myread
***************
*** 1300,1306 ****
      esac
      kanji_out_code=$ans;;
  *)
!     kanji_out_code='(J';;
  esac
  
  : get news administrator name
--- 1300,1306 ----
      esac
      kanji_out_code=$ans;;
  *)
!     kanji_out_code='(B';;
  esac
  
  : get news administrator name
***************
*** 1788,1794 ****
      termios=undef
      $echo "termio.h found."
  else
! if test -d /usr/convex ; then
      termio=undef
      termios=define
      $echo "termios.h found."
--- 1788,1795 ----
      termios=undef
      $echo "termio.h found."
  else
! #if test -d /usr/convex ; then
! if $test -d /usr/convex -o -r /usr/include/termios.h ; then	# by N. Koganemaru
      termio=undef
      termios=define
      $echo "termios.h found."
diff -acr rn-4.4.orig/art.c rn-4.4/art.c
*** rn-4.4.orig/art.c	Thu Aug 17 22:59:29 1995
--- rn-4.4/art.c	Thu Jun 29 16:04:42 1995
***************
*** 124,129 ****
--- 124,134 ----
  #ifdef INNERSEARCH
      register int outputok;
  #endif
+ #ifdef KANJI
+ 	unsigned char sav_buf[LBUFLEN];		/* place for article lines */
+ #else
+ 	char sav_buf[LBUFLEN];		/* place for article lines */
+ #endif
  
      if (fstat(fileno(artfp),&filestat))
  			    /* get article file stats */
***************
*** 228,233 ****
--- 233,240 ----
  		}
  		bufptr = art_buf;	/* so start at beginning */
  		art_buf[LBUFLEN-1] = '\0';
+ 		strcpy(sav_buf, art_buf);	/* add N. Koganemaru */
+ 		mime_cnv(art_buf);		/* add N. Koganemaru */
  					/* make sure string ends */
  	    }
  	    blinebeg = (char *)bufptr;	/* remember where we began */
***************
*** 241,246 ****
--- 248,254 ----
  		fgets(art_buf,sizeof(art_buf),artfp);
  		if (index(art_buf,'!') != Nullch)
  		    fgets(art_buf,sizeof(art_buf),artfp);
+ 		mime_cnv(art_buf);		/* add N. Koganemaru */
  		htype[PAST_HEADER].ht_minpos = ftell(artfp);
  					/* exclude notesfiles droppings */
  		hide_this_line = TRUE;	/* and do not print either */
***************
*** 251,256 ****
--- 259,265 ----
  		  execute(&hide_compex,art_buf) )
  		hide_this_line = TRUE;
  #endif
+ 	    /*printf("in_header=%d, %s\n", in_header, art_buf);	/* debug */
  	    if (in_header && htype[in_header].ht_flags & HT_MAGIC) {
  		if (in_header == NGS_LINE) {
  		    if ((s = index(art_buf,'\n')) != Nullch)
***************
*** 265,275 ****
--- 274,293 ----
  		    hide_this_line = (strlen(art_buf) < 10);
  		}
  		else if (in_header == FROM_LINE) {
+ #if 0
  		    if (do_hiding && (s = index(art_buf+6,'(')) != Nullch) {
  			strcpy(art_buf+6,s+1);
  			if((s = rindex(art_buf+6,')')) != Nullch)
  			    *s = '\0';
  		    }
+ #endif
+ 		    if (do_hiding && (s = index(sav_buf+6,'(')) != Nullch) {
+ 			strcpy(sav_buf+6,s+1);
+ 			if((s = rindex(sav_buf+6,')')) != Nullch)
+ 			    *s = '\0';
+ 			strcpy(art_buf, sav_buf);	/* add N. Koganemaru */
+ 			mime_cnv(art_buf);		/* add N. Koganemaru */
+ 		    }
  		}
  	    }
  	    if (in_header == SUBJ_LINE &&
***************
*** 300,305 ****
--- 318,331 ----
  		maybe_eol();	
  #endif /* CLEAREOL */
  		/* Find the point where the subject text starts. */
+ #if 0
+ 		{ s = (char *)art_buf;
+ 			while (*s) {
+ 				printf("%02x", *s++ & 0xFF);
+ 			}
+ 			putchar('\n');
+ 		}
+ #endif
  		s = (char *)art_buf;
  		if (!isspace(*s)) {
  		    /* This is the first subject line, not a continuation
***************
*** 307,313 ****
  		    s += 8;
  		}
  		/* Skip past any whitespace. */
! 		while (isspace(*s)) ++s;
  
  		/* Split the string in two at the whitespace. */
  		sp = *(s-1);
--- 333,340 ----
  		    s += 8;
  		}
  		/* Skip past any whitespace. */
! 		/* while (isspace(*s)) ++s; */
! 		while (((*s & 0x80) == 0) && isspace(*s)) ++s;
  
  		/* Split the string in two at the whitespace. */
  		sp = *(s-1);
***************
*** 330,336 ****
--- 357,381 ----
  		if (!in_header)
  		    hide_this_line = FALSE;
  	    }
+ #if 1	/* add by N. Koganemaru */
+ 	    else if (jst && in_header == DATE_LINE) {
+ 		char work[256];
+ 		/* printf("DATE_LINE:%s", art_buf); */
+ 		if (date_cnv(art_buf, work)) {
+ #if 0
+ 		    /* printf("Jst-Date: "); */
+ 		    /*underprint(work);	/* print subject underlined */
+ 		    printf("Jst-Date: %s", work);
+ 		    linenum++;
+ 		    putchar('\n') FLUSH;	/* and finish the line */
+ #endif
+ 		    strcpy(art_buf+6, work);
+ 		}
+ 		goto normal_line;
+ 	    }
+ #endif
  	    else {			/* just a normal line */
+  normal_line:
  		if (highlight==artline) {	/* this line to be highlit? */
  		    if (marking == STANDOUT) {
  #ifdef NOFIREWORKS
***************
*** 366,371 ****
--- 411,425 ----
  #endif
  		for (outpos = 0; outpos < COLS-1; ) {
  				    /* while line has room */
+ #ifdef KANJI
+ 		    if (bufptr[0]==033 && (bufptr[1]=='$'||bufptr[1]=='(') && bufptr[2]) {
+ 			putchar(*bufptr++);
+ 			putchar(*bufptr++);
+ 			putchar(*bufptr++);
+ 			continue;
+ 		    }
+ 		    else
+ #endif
  		    if (*(unsigned char *)bufptr >= ' ') { /* normal char? */
  #ifdef ULSMARTS
  			if (*bufptr == '_') {
***************
*** 994,996 ****
--- 1048,1063 ----
      return FALSE;
  }
  #endif
+ 
+ #include "jst_date.c"
+ 
+ mime_cnv(buff)
+ char *buff;
+ {
+ #if 1
+ 	char outs[LBUFLEN];
+ 
+ 	MIME_strHeaderDecode(buff,outs,sizeof(outs));
+ 	strcpy(buff, outs);
+ #endif
+ }
diff -acr rn-4.4.orig/backpage.c rn-4.4/backpage.c
*** rn-4.4.orig/backpage.c	Sun Mar 29 14:10:25 1992
--- rn-4.4/backpage.c	Thu Jun 29 17:35:55 1995
***************
*** 28,34 ****
  #include "backpage.h"
  
  ART_LINE maxindx = -1;
! long lseek();
  
  void
  backpage_init()
--- 28,34 ----
  #include "backpage.h"
  
  ART_LINE maxindx = -1;
! /* long lseek(); */
  
  void
  backpage_init()
diff -acr rn-4.4.orig/common.h rn-4.4/common.h
*** rn-4.4.orig/common.h	Thu Aug 17 22:59:30 1995
--- rn-4.4/common.h	Thu Jun 29 16:04:43 1995
***************
*** 835,840 ****
--- 835,843 ----
      EXT bool verify INIT(FALSE);			/* -v */
  #endif
      EXT bool quickstart INIT(FALSE);			/* -q */
+ #if 1	/* N. Koganemaru */
+     EXT bool jst INIT(TRUE);				/* -x */
+ #endif
  
  #define NOMARKING 0
  #define STANDOUT 1
diff -acr rn-4.4.orig/htonk.c rn-4.4/htonk.c
*** rn-4.4.orig/htonk.c	Thu Aug 17 22:59:23 1995
--- rn-4.4/htonk.c	Thu Jun 29 16:04:43 1995
***************
*** 12,17 ****
--- 12,18 ----
  
     while(kanji_fgets(buffer, 1024, stdin) != NULL)
        kanji_fputs(buffer, stdout);
+    kanji_fclose(stdout);
  }
  
  #endif /* KANJI */
diff -acr rn-4.4.orig/ng.c rn-4.4/ng.c
*** rn-4.4.orig/ng.c	Sun Mar 29 14:09:47 1992
--- rn-4.4/ng.c	Thu Jun 29 16:04:44 1995
***************
*** 918,923 ****
--- 918,924 ----
  		else
  		    safecpy(tmpbuf + 6, subj_list[OFFSET(i)],
  			(sizeof tmpbuf) - 6);
+ 		mime_cnv(tmpbuf);		/* add N. Koganemaru */
  		if (cmd = print_lines(tmpbuf,NOMARKING)) {
  		    if (cmd > 0)
  			pushchar(cmd);
***************
*** 933,938 ****
--- 934,940 ----
  		}
  		else
  		    safecpy(tmpbuf + 6, s, (sizeof tmpbuf) - 6);
+ 		mime_cnv(tmpbuf);		/* add N. Koganemaru */
  		if (cmd = print_lines(tmpbuf,NOMARKING)) {
  		    if (cmd > 0)
  			pushchar(cmd);
diff -acr rn-4.4.orig/sw.c rn-4.4/sw.c
*** rn-4.4.orig/sw.c	Thu Aug 17 22:59:34 1995
--- rn-4.4/sw.c	Thu Jun 29 16:04:44 1995
***************
*** 406,411 ****
--- 406,416 ----
  	    notincl("-v");
  #endif
  	    break;
+ #if 1	/* N. Koganemaru */
+ 	case 'x':
+ 	    jst = upordown;
+ 	    break;
+ #endif
  	/*
  	 * People want a way to avoid checking for new newsgroups on startup.
  	 */
diff -acr rn-4.4.orig/term.c rn-4.4/term.c
*** rn-4.4.orig/term.c	Thu Aug 17 22:59:34 1995
--- rn-4.4/term.c	Thu Jun 29 16:04:45 1995
***************
*** 698,703 ****
--- 698,717 ----
      assert(UC);
      if (*UC) {		/* char by char underline? */
  	while (*s) {
+ #ifdef KANJI
+ 	    if ((unsigned char)(*s) & 0x80){
+ 		if (s[1]){
+ 			putchar((unsigned char)(*s++));
+ 			putchar((unsigned char)(*s));
+ 		}
+ 	    }
+ 	    else if (s[0]==033 && (s[1]=='$'||s[1]=='(') && s[2]) {
+ 		putchar(*s++);
+ 		putchar(*s++);
+ 		putchar(*s);
+ 	    }
+ 	    else
+ #endif
  	    if (*(unsigned char *)s < ' ') {
  		putchar('^');
  		backspace();/* back up over it */
***************
*** 717,728 ****
--- 731,746 ----
      else {		/* start and stop underline */
  	underline();	/* start underlining */
  	while (*s) {
+ #ifdef KANJI
+ 	    putchar(*s);
+ #else
  	    if (*(unsigned char *)s < ' ') {
  		putchar('^');
  		putchar(*s+64);
  	    }
  	    else
  		putchar(*s);
+ #endif
  	    s++;
  	}
  	un_underline();	/* stop underlining */
***************
*** 968,975 ****
--- 986,1004 ----
  	for (i=0; i<COLS; i++) {
  	    if (!*s)
  		break;
+ #ifdef KANJI
+ 	    if (s[0]==033 && (s[1]=='$'||s[1]=='(') && s[2]) {
+ 		putchar(*s++);
+ 		putchar(*s++);
+ 		putchar(*s++);
+ 		continue;
+ 	    }
+   	    if ((unsigned char)(*s) >= ' ')
+   		putchar((unsigned char)(*s));
+ #else
  	    if (*(unsigned char *)s >= ' ')
  		putchar(*s);
+ #endif
  	    else if (*s == '\t') {
  		putchar(*s);
  		i = ((i+8) & ~7) - 1; 
------------------------------------------------------------------------

4) Configure $B$N<B9T(B
	/etc/organization $B$r:n@.$9$k(B
	cat /etc/organization
	KOGANEMARU Computer Engineering Service Corporation.

	Configure $B$r<B9T$7$F!"7k6I!"<!$N(B config.sh $B%U%!%$%k$rF@$k!#(B

	config.sh
------------------------------------------------------------------------
#!/bin/sh
# config.sh
# This file was produced by running the Configure script.

n='-n'
c=''
libc='/usr/lib/libc.a'
eunicefix=':'
eunice='undef'
cpp='/usr/libexec/cpp'
shsharp='true'
startsh='#!/bin/sh'
spitshell='cat'
test='/bin/test'
expr='/bin/expr'
sed='/usr/bin/sed'
echo='/bin/echo'
cat='/bin/cat'
rm='/bin/rm'
mv='/bin/mv'
cp='/bin/cp'
tail='/usr/bin/tail'
tr='/usr/bin/tr'
mkdir='/bin/mkdir'
sort='/usr/bin/sort'
uniq='/usr/bin/uniq'
inews='/usr/local/news/inews'
grep='/usr/bin/grep'
egrep='/usr/bin/egrep'
nidump=''
ypmatch=''
contains='grep'
lib='/usr/local/news'
libexp='/usr/local/news'
nametype='bsd'
cc='cc'
iandd=''
include=''
rrninclude=''
termlib='-ltermlib'
jobslib=''
socketlib=''
getcwd='undef'
getwd='define'
dirtype='dirent'
dirinc='<dirent.h>'
ndirlib=''
libndir='undef'
usendir='undef'
ndirc=''
ndiro=''
posix=''
pager='/usr/bin/more'
mailer='/usr/sbin/sendmail'
internet='define'
rnbin='/usr/local/bin'
filexp='/usr/local/lib/rn/filexp'
distlist=''
Log='$Log'
Id='$Id'
sitename='kces.koganemaru.co.jp'
hostfile=''
domain='koganemaru.co.jp'
orgname="/etc/organization"
isadmin='define'
newsadmin='news'
rnlib='/usr/local/lib/rn'
mansrc='/usr/local/man/man1'
manext='1'
maildir='/var/mail/%L'
spool='/var/spool/news'
active='/usr/local/news/active'
myactive='/usr/local/news/active'
activetimes='/usr/local/news/active.times'
mininact='define'
pref='/bin/csh'
defeditor='/usr/local/bin/vi8'
rootid='0'
mboxchar='F'
locpref='local'
orgpref='kces'
citypref='none'
statepref='none'
cntrypref='fj'
contpref='none'
strchr='undef'
memcpy='undef'
rename='define'
truncate='define'
chsize='undef'
tzset='undef'
novoid='undef'
novfork='undef'
needvsprintf='undef'
intsprintf='undef'
sunos4='undef'
portable='undef'
passnam='define'
berknam='define'
usgnam='undef'
whoami='undef'
termio='undef'
termios='define'
fcntl='define'
ioctl='define'
ptem='undef'
normsig='define'
sigblock='define'
sigret='void'
sighold='undef'
getuidgid='define'
havetlib='define'
getpwent='define'
gethostname='undef'
douname='undef'
phostname='undef'
hostcmd=''
norelay='define'
rdchk='undef'
isrrn='undef'
serverfile=''
ignoreorg='undef'
NNTPSRC=''
kanji='define'
kanji_type='JIS'
kanji_in_code='$B'
kanji_out_code='(B'
kanji_prompt='Japanese'
CONFIG=true
------------------------------------------------------------------------

5) MKcmd $B$r<B9T(B

	MKcmd
------------------------------------------------------------------------
#!/bin/sh -x
set `grep <MANIFEST '\.SH' | awk '{print $1}'`
for file 
do
	if test -f "$file".j ; then
	    sh $file.j
	else
	    sh $file
	fi
done
------------------------------------------------------------------------

6) Makefile $B$N=$@5(B

	$B$3$l$G:n@.$5$l$?(B Makefile $B$r(B make depend $B$r<B9T$7$?8e=$@5$9$k!#(B
------------------------------------------------------------------------
*** Makefile.orig	Fri Jun 30 02:08:04 1995
--- Makefile	Fri Jun 30 02:47:26 1995
***************
*** 39,45 ****
  NDIRO = 
  
  libs =  -ltermlib   -lm
! mlibs = 
  kanji=htonk ntohk kecho kcat eecho ecat
  kanji_prompt=kanji_prompt
  public = rn newsetup newsgroups Pnews Rnmail
--- 39,46 ----
  NDIRO = 
  
  libs =  -ltermlib   -lm
! mlibs = /dskg/port/mime/mms0.7.3/libmms.a
! #mlibs = 
  kanji=htonk ntohk kecho kcat eecho ecat
  kanji_prompt=kanji_prompt
  public = rn newsetup newsgroups Pnews Rnmail
***************
*** 98,104 ****
  	touch all
  
  rn: $(obj)
! 	$(CC) $(LDFLAGS) $(obj) $(libs) -o rn
  
  
  
--- 99,105 ----
  	touch all
  
  rn: $(obj)
! 	$(CC) $(LDFLAGS) $(obj) $(libs) $(mlibs) -o rn
  

7) jst_date.c $B$NDI2C(B
  
	$B<!$N(B jst_date.c $B%U%!%$%k$rDI2C$9$k(B
------------------------------------------------------------------------
begin 664 jst_date.c.gz
M'XL("'"RKBT``VIS=%]D871E+F,`C59M;]M&#/XL_0I6@1TK5IL[O236*2[0
MK>N`H,D^),4^>$;@V'(M-)$-6>Z0K/[O(WF2+/FM!2S?Z?@<>7R.I'B2I..G
MU22&JV4^2>;O9N_-DV0*PC0^CO)8@9#P89&!#$,?A*M\H8(+^//FOI1K,0F%
MDCWEB;U"Z2F_IX0L!>Y&J0Q0HQ(>=$4H*K.?LL2!NFFAW%!Y;EU[#4,(3TFA
MA+M'CQO`S6BC2(1*-GRXF:>HJ&8-CRM#Y5\V=3',E1M=\E)YO@I\^'+_>PFZ
M&^4.0%B=*J1S"P%OA;_1Q""WR5P0PO5==:3[V0H1/MLJ(`%JVH%XLN%:@#3U
MFJ?>A>$M!LKWZPPPZ+)&MZ>\0'DA8T[B=)),S23-S0FB'\;I]\[C:CIU8+[*
M;7,\0\UGM!`5<UR.S/],`W?`2SS*''B>I_G,@<GH)3(-!OT;Q]\&O2&+'M+1
M<\PO>8(3Z=+L58]G^>LBTJIF\Q6I2O`6EO&X6,QP7.:C/!D#ZT43RX'TAM`'
M/,'Y&08((-4`'CX^/@$^%_A<XM,#NBH`*8#N'Z0+9^>F(8@PI+^G1T]LC3MK
MZ\@T#3PH&LU?(S9[/'O83(;PY7(\2J=,9_?"`:LU@=82BO^EY4`;'=J0A.^:
M4"**2+*UM46&7$P[U@?(^JW)/RENS.R(K6`R=]!2'WR;&"F.:5FXT?@ZS^>`
MUXGS=0T9V$U9Y<ZQC*N,D2^#<`AO^G#JG)*J+,Y76=H1=-A2BD(XC0Z04#&P
MX8'B98<-T]A#1\V"<]JDY[<C]`2_3,_%%CTU]TQ:4AI+)X,6QAQN$=!N0[$@
MD:LWM/3C1[F$I8%1I)@#V*7CNR$JCY^6<7.U%VG]RVP\>T`J.K7@X#RS*UUU
MXFM$:[8PUA3_*,IT;K4YN=J87794.HQ'];9UL?D\&S\O.ODK:L*(M@JK3")I
M@VX?R`$&\\)[+&A:K@%OT1F?$$:WJRN#!N,<L>PQ^S,L-K&05\B4=,MEW$X\
M1OJE`(#4[VO^+UAD+`.TD"R52`*N-P&`A=;2]TY[8=MC$M<]_K5=G"C']U61
M<T6!0L3S&Y(I<2\5NR*8L<C2'0I_<MX2KOX#^E/5'V8.Q;II;!=A9ZN64NHL
M[$TH2YRO3:[X>Z(,9XNR[)>K$8'Y=<&EOUZ2&90_/@VX*&-NX8D,ZWI$:6A]
MBA]IP*\3#5A9]-L+#=>KM,"NGEBZ^DK#7;R@X:]Q3L/M_#L-'^.QM2Z^"0F5
MX^D\@T[2EQ$D5WWIXM#M:LYKM])PBL^8#.O78[!'>.R$8Z1&#P?+NI'\R)AN
MG;37E<>F81W_&NA+LHXT5/L195?5D!YLK1JH8_W5(>!.R=\%'NJT&LB?M%N[
MV$,]5P-YM/':1>[MOAJP(RW8+NYP'_83;*T9VT4>Z,@T\/;+Y\\F=1[/HR3M
MV)1UNK.:9]\&4KC^L.RU^(M8KFPGB(A`QSU5>M)9RQ3*DL5+AS0Z!8I#O_R>
IZB\S2NVRT%<-HMY#EFTJ8M66VS_^5D5=TE(N>^NRR?P?*!GCAH\,``!#
`
end
------------------------------------------------------------------------


8) make

	make $B$r<B9T$9$k!#(B

9) $B%$%s%9%H!<%k(B

	make install $B$r<B9T$9$k!#(B

10) vi8 $B%3%^%s%I$N:n@.(B

$BF|K\8l$rF~NO$G$-$k(B /usr/local/bin/vi8 $B$r:n@.$9$k!#(B
------------------------------------------------------------------------
#!/bin/sh
# vi8: $B#7%S%C%H#J#I#S%3!<%I$N%U%!%$%k$rJT=8$9$k(B
#      $BF~NO%U%!%$%k$O#7%S%C%H!?#8%S%C%H%U%!%$%k!"=PNO#8%S%C%H#J#I#S%U%!%$%k(B
T=/tmp/vi8$$
nkf -e $1 >$T
/usr/local/bin/vi $T
mv $T $1
------------------------------------------------------------------------

$B$3$3$G(B /usr/local/bin/vi $B$O(B canna $B$GF|K\8l$,F~NO$G$-$k(B jelvis $B$G$9!#(B

-rwxr-xr-x  5 bin  bin  131072 95/06/25 17:23 /usr/local/bin/elvis*
-rwxr-xr-x  5 bin  bin  131072 95/06/25 17:23 /usr/local/bin/vi*

----- $B$3$3$^$G(B -----
--
($BM-(B)$B>.6b4]%3%s%T%e!<%?%(%s%8%K%"%j%s%0%5!<%S%9(B ($BJ!2,8)BgLn>k;T(B)
	$B>.6b4](B $B?.9,(B (Nobuyuki Koganemaru)
$B%a!<%k%"%I%l%9(B:	kogane@kces.koganemaru.co.jp
