From owner-ports-jp@jp.freebsd.org  Fri Aug 15 11:02:51 1997
Received: by jaz.jp.freebsd.org (8.8.7+2.7Wbeta5/8.7.3) id LAA12807
	Fri, 15 Aug 1997 11:02:51 +0900 (JST)
Received: by jaz.jp.freebsd.org (8.8.7+2.7Wbeta5/8.7.3) with ESMTP id LAA12728
	for <ports-jp@jp.FreeBSD.org>; Fri, 15 Aug 1997 11:02:48 +0900 (JST)
Received: from kiri.toba-cmt.ac.jp (localhost [127.0.0.1])
	by kiri.toba-cmt.ac.jp (8.8.5/8.8.5) with ESMTP id LAA29269
	for <ports-jp@jp.FreeBSD.org>; Fri, 15 Aug 1997 11:04:57 +0900 (JST)
Message-Id: <199708150204.LAA29269@kiri.toba-cmt.ac.jp>
To: ports-jp@jp.FreeBSD.org
From: KIRIYAMA Kazuhiko <kiri@kiri.toba-cmt.ac.jp>
In-Reply-To: Your message of "Fri, 15 Aug 1997 08:45:04 +0900"
References: <199708142345.IAA00579@lavender.sanpei.org>
X-Mailer: Mew version 1.70 on Emacs 19.28.1 / Mule 2.3
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Date: Fri, 15 Aug 1997 11:04:47 +0900
Reply-To: ports-jp@jp.freebsd.org
Precedence: bulk
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=20]
X-Sequence: ports-jp 1558
Subject: [ports-jp 1558] Re: new ports: yatex
Errors-To: owner-ports-jp@jp.freebsd.org
Sender: owner-ports-jp@jp.freebsd.org

$B6M;3(B $B$G$9!#(B

>   devel $B$N%+%F%4%j$J$N$@$m$&$+(B?? $B$=$3$@$H$$$&%+%F%4%j$,$9$0;W$$Ib$+(B
> $B$P$J$$$G$9$,!D!D(B

print $B$@$H;W$$$^$9$,(B...$B!#(B

>   $B:G8e$K(B, auto-mode-alist $B$KDI2C$7$J$/$F$b(B, autoload $B$0$i$$(B 
> site-start.el $B$KDI2C$7$F$b$h$$$H;W$$$^$7$?(B. 
> 
> $B<!$NMM$J0l9T$GNI$$$H;W$&$N$G$9$,(B. 
> (autoload 'yatex-mode "yatex" "Loading YaTeX" nil)
> 
> sanpei

$B<B$O$3$l:$$k$s$G$9!#$H$$$&$N$O(B *.tex $B$OA4$F(B YaTeX$B%b!<%I$K$J$C$F$7$^$&(B
$B$N$G;d$J$s$+(B AUC-TeX$B@83h<T$O;n$7$K(B YaTeX $B$r%$%s%9%H!<%k$G$-$J$/$J$C$F(B
$B$7$^$$$^$9(B($B$[$J:G=i$+$i%$%s%9%H!<%k$9$k$J$C$F(B^^;)$B!#(B

$B!t(B AUC-TeX $B$N(B port $B$r:n$m$&(B^2$B$H;W$C$FAa$d0lG/(B..TeX $B$N%f!<%64D6-$^$G9M(B
$B!t(B $BN8$KF~$l$k$HF,$,0n$l=P$7$?$N$G$:$C$H%Z%s%G%#%s%0$K$J$C$F$^$9!#(B

$BQ(1[$J$,$i$A$g$C$H%3%a%s%H$r(B...

diff -aurN ../../../tmp/devel/yatex/Makefile ./Makefile
--- ../../../tmp/devel/yatex/Makefile	Fri Aug 15 04:29:30 1997
+++ ./Makefile	Fri Aug 15 10:55:59 1997
@@ -6,9 +6,9 @@
 # $$
 #
 
-DISTNAME=	yatex1.64.2
-PKGNAME?=	yatex-1.64.2
-CATEGORIES?=	devel
+DISTNAME=	yatex${VERSION}
+PKGNAME?=	yatex-${VERSION}
+CATEGORIES?=	print
 MASTER_SITES=	ftp://ftp.ae.keio.ac.jp/pub/emacs-lisp/text/yatex/
 
 MAINTAINER=	taoka@infonets.hiroshima-u.ac.jp
@@ -47,10 +47,15 @@
 do-build:
 	(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} bytecompile)
 
-pre-install:
+post-build:
 	@for file in user-install INSTALL DEINSTALL; do \
 	  ${SED} -e "s,%VERSION%,${VERSION},g" \
 		 -e "s,%PREFIX%,${PREFIX},g" \
+		 -e "s,%BASENAME%,${BASENAME},g" \
+		 -e "s,%CP%,${CP},g" \
+		 -e "s,%ECHO%,${ECHO},g" \
+		 -e "s,%GREP%,${GREP},g" \
+		 -e "s,%SED%,${SED},g" \
 		 -e "s,%TOUCH%,${TOUCH},g" \
 		 -e "s,%INFODIR%,${INFODIR},g" \
 		 -e "s,%ELISPDIR%,${ELISPDIR},g" \
diff -aurN ../../../tmp/devel/yatex/files/DEINSTALL.tmpl ./files/DEINSTALL.tmpl
--- ../../../tmp/devel/yatex/files/DEINSTALL.tmpl	Fri Aug 15 03:55:08 1997
+++ ./files/DEINSTALL.tmpl	Fri Aug 15 10:46:44 1997
@@ -1,5 +1,10 @@
 #!/bin/sh
 
+CP=${CP:-%CP%}
+ECHO=${ECHO:-%ECHO%}
+GREP=${GREP:-%GREP%}
+SED=${SED:-%SED%}
+
 infodir=${INFODIR:-%INFODIR%}
 infofiles=${INFOFILES:-%INFOFILES%}
 elispdir=${ELISPDIR:-%ELISPDIR%}
@@ -8,15 +13,15 @@
 OptionEnd=";;; End of %TARGETNAME% configuration options"
 
 if [ "X$2" = X"DEINSTALL" ]; then
-	echo "Deleting \"%TARGETNAME%\" entry from ${infodir}/dir"
+	${ECHO} "Deleting \"%TARGETNAME%\" entry from ${infodir}/dir"
 	for file in ${infofiles}; do
 		install-info --delete ${infodir}/${file} ${infodir}/dir
 	done
 	if  [ "`grep \"^${OptionStart}\"  ${elispdir}/site-start.el`" ]; then 
-		echo "Deleting \"%TARGETNAME%\" entry from ${elispdir}/site-start.el"
-		sed -e "/^${OptionStart}/,/^${OptionEnd}/d" \
+		${ECHO} "Deleting \"%TARGETNAME%\" entry from ${elispdir}/site-start.el"
+		${SED} -e "/^${OptionStart}/,/^${OptionEnd}/d" \
 		    ${elispdir}/site-start.el > ${elispdir}/site-start.el.bak
-		cp ${elispdir}/site-start.el.bak ${elispdir}/site-start.el
+		${CP} ${elispdir}/site-start.el.bak ${elispdir}/site-start.el
 	fi
 else
 	exit 0
diff -aurN ../../../tmp/devel/yatex/files/INSTALL.tmpl ./files/INSTALL.tmpl
--- ../../../tmp/devel/yatex/files/INSTALL.tmpl	Fri Aug 15 04:57:20 1997
+++ ./files/INSTALL.tmpl	Fri Aug 15 10:49:11 1997
@@ -1,6 +1,12 @@
 #!/bin/sh
 
+BASENAME=${BASENAME:-%BASENAME%}
+CP=${CP:-%CP%}
+ECHO=${ECHO:-%ECHO%}
+GREP=${GREP:-%GREP%}
+SED=${SED:-%SED%}
 TOUCH=${TOUCH:-%TOUCH%}
+
 infodir=${INFODIR:-%INFODIR%}
 infofiles=${INFOFILES:-%INFOFILES%}
 elispdir=${ELISPDIR:-%ELISPDIR%}
@@ -15,34 +21,34 @@
 		 ${TOUCH} ${elispdir}/site-start.el
 	fi
 	for file in ${infofiles}; do
-	if [ ! "`grep \"START-INFO-DIR-ENTRY\" ${infodir}/${file}`" ]; then
-		echo "INFO-DIR-SECTION ${dirsection}" \
+	if [ ! "`${GREP} \"START-INFO-DIR-ENTRY\" ${infodir}/${file}`" ]; then
+		${ECHO} "INFO-DIR-SECTION ${dirsection}" \
 						>> ${infodir}/${file}
-		echo "START-INFO-DIR-ENTRY"	>> ${infodir}/${file}
+		${ECHO} "START-INFO-DIR-ENTRY"	>> ${infodir}/${file}
 		if [ ${file} = "yatexj" ]; then
-			echo "* %TARGETNAME%-jp: (`basename ${file}`).		Yet Another tex-mode for Emacs. (Japanese)" \
+			${ECHO} "* %TARGETNAME%-jp: (`${BASENAME} ${file}`).		Yet Another tex-mode for Emacs. (Japanese)" \
 						>> ${infodir}/${file}
 		else
-			echo "* %TARGETNAME%: (`basename ${file}`).		Yet Another tex-mode for Emacs." \
+			${ECHO} "* %TARGETNAME%: (`${BASENAME} ${file}`).		Yet Another tex-mode for Emacs." \
 						>> ${infodir}/${file}
 		fi
-		echo "END-INFO-DIR-ENTRY"	>> ${infodir}/${file}
+		${ECHO} "END-INFO-DIR-ENTRY"	>> ${infodir}/${file}
 	fi
 	done
-	echo "Adding \"%TARGETNAME%\" to ${infodir}/dir"
+	${ECHO} "Adding \"%TARGETNAME%\" to ${infodir}/dir"
 	for file in ${infofiles}; do
 		install-info ${infodir}/${file} ${infodir}/dir
 	done
-	if  [ "`grep \"^${OptionStart}\"  ${elispdir}/site-start.el`" ]; then 
-		sed -e "/^${OptionStart}/,/^${OptionEnd}/d" \
+	if  [ "`${GREP} \"^${OptionStart}\"  ${elispdir}/site-start.el`" ]; then 
+		${SED} -e "/^${OptionStart}/,/^${OptionEnd}/d" \
 		  ${elispdir}/site-start.el > ${elispdir}/site-start.el.bak
-		cp ${elispdir}/site-start.el.bak ${elispdir}/site-start.el
+		${CP} ${elispdir}/site-start.el.bak ${elispdir}/site-start.el
 	fi
-	echo "Adding \"%TARGETNAME%\" entry to ${elispdir}/site-start.el"
-	echo "${OptionStart}" >> ${elispdir}/site-start.el
-	echo "(setq load-path (cons \"${elispdir}/yatex\" load-path))" \
+	${ECHO} "Adding \"%TARGETNAME%\" entry to ${elispdir}/site-start.el"
+	${ECHO} "${OptionStart}" >> ${elispdir}/site-start.el
+	${ECHO} "(setq load-path (cons \"${elispdir}/yatex\" load-path))" \
 					>> ${elispdir}/site-start.el
-	echo "${OptionEnd}" \
+	${ECHO} "${OptionEnd}" \
 					>> ${elispdir}/site-start.el
 	exit 0
 else
diff -aurN ../../../tmp/devel/yatex/files/user-install.tmpl ./files/user-install.tmpl
--- ../../../tmp/devel/yatex/files/user-install.tmpl	Fri Aug 15 01:17:22 1997
+++ ./files/user-install.tmpl	Fri Aug 15 10:52:38 1997
@@ -2,16 +2,19 @@
 # a setup script for YaTeX
 #   -- S. Taoka <taoka@infonets.hiroshima-u.ac.jp>
 
+CAT=%CAT%
+CP=%CP%
 PREFIX=%PREFIX%
-TOUCH=${TOUCH:-%TOUCH%}
-SED=/usr/bin/sed
+RM=%RM%
+TOUCH=%TOUCH%
+SED=%SED%
 
 ${TOUCH} ${HOME}/.emacs
-sed -e '/^;;* %TARGETNAME% (Ver.%VERSION%) ;;*$/,/^;; %TARGETNAME% (Ver.%VERSION%) end$/d' \
+${SED} -e '/^;;* %TARGETNAME% (Ver.%VERSION%) ;;*$/,/^;; %TARGETNAME% (Ver.%VERSION%) end$/d' \
 	< ${HOME}/.emacs > /tmp/dot.emacs
 
 {
-cat <<EOF
+${CAT} <<EOF
 ;;;;;;;;;;;;;;;;;;;; %TARGETNAME% (Ver.%VERSION%) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 (setq auto-mode-alist
      (cons (cons "\\\\.tex$" 'yatex-mode) auto-mode-alist))
@@ -29,6 +32,6 @@
 ;; %TARGETNAME% (Ver.%VERSION%) end
 EOF
 } >> /tmp/dot.emacs
-cp /tmp/dot.emacs ${HOME}/.emacs
+${CP} /tmp/dot.emacs ${HOME}/.emacs
 
-rm -f /tmp/dot.emacs
+${RM} -f /tmp/dot.emacs


$B$"$H$G;d$N4uK>$H$7$F$O(B INSTALL/DEINSTALL $B$G(B site-start.el $B$O0l@Z$$$8$i(B
$B$J$$$G%f!<%64D6-$O(B user-install $B$GA4$F$d$C$F$$$?$@$-$?$$$H;W$$$^$9(B
(YaTeX/AUC-TeX$B$J$IF1<o$N$b$N$,$"$k$H$-$O0BA4$N$?$a$3$NJ}$,$$$$$H;W$$$^(B
$B$9(B)$B!#(B

$B!t(B $B$"$H(B install-info $B$O$3$NJ}<0$@$H(B portlint $B$G(B fatal $B$K$J$k$H$$$&$N$O(B
$B!t(B $B$$$$$N$+$J!)(B
------------------------------------------------------------------------
$B6M;3OBI'(B <kiri@kiri.toba-cmt.ac.jp>                 $BD;1)>&A%9bEy@lLg3X9;(B
                                                          $BEE;R5!3#9)3X2J(B
