View | Details | Raw Unified | Return to bug 8224
Collapse All | Expand All

(-)print/yatex/Makefile (-2 / +5 lines)
Lines 1-6 Link Here
1
# New ports collection makefile for: YaTeX
1
# New ports collection makefile for: YaTeX
2
# Version required:	1.65.6
2
# Version required:	1.65.6
3
# Date created:		18 Feb. 1998
3
# Date created:		Oct 9 1998
4
# Whom:			Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
4
# Whom:			Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
5
#
5
#
6
# $Id: Makefile,v 1.1.1.1 1998/08/14 00:16:07 kuriyama Exp $
6
# $Id: Makefile,v 1.1.1.1 1998/08/14 00:16:07 kuriyama Exp $
Lines 36-42 Link Here
36
		\\t\\"${ELISPDIR}/yatex\\"\\n\
36
		\\t\\"${ELISPDIR}/yatex\\"\\n\
37
		\\t) load-path))\\n
37
		\\t) load-path))\\n
38
.if defined(MULE)
38
.if defined(MULE)
39
EMACSDIR=	${PREFIX}/lib/mule
39
EMACSDIR=	${PREFIX}/share/mule
40
SITESTARTDIR=	${EMACSDIR}/19.34/site-lisp
40
.endif
41
.endif
41
.if defined(XEMACS-MULE)
42
.if defined(XEMACS-MULE)
42
EMACS=		xemacs
43
EMACS=		xemacs
Lines 44-49 Link Here
44
#
45
#
45
INFODIR=	${EMACSDIR}/info
46
INFODIR=	${EMACSDIR}/info
46
ADDSITESTART=
47
ADDSITESTART=
48
SITESTARTDIR=
47
.endif
49
.endif
48
.if defined(MULE) || defined(XEMACS-MULE)
50
.if defined(MULE) || defined(XEMACS-MULE)
49
NEW=		yatex.new
51
NEW=		yatex.new
Lines 95-100 Link Here
95
		 -e 's,%INFONODES%,${INFONODES},g' \
97
		 -e 's,%INFONODES%,${INFONODES},g' \
96
		 -e 's,%INFONODEEXPS%,${INFONODEEXPS},g' \
98
		 -e 's,%INFONODEEXPS%,${INFONODEEXPS},g' \
97
		 -e 's,%DIRSECTION%,${DIRSECTION},g' \
99
		 -e 's,%DIRSECTION%,${DIRSECTION},g' \
100
		 -e 's,%SITESTARTDIR%,${SITESTARTDIR},g' \
98
		 -e 's,%ADDSITESTART%,${ADDSITESTART},g' \
101
		 -e 's,%ADDSITESTART%,${ADDSITESTART},g' \
99
		< ${FILESDIR}/$${file}.tmpl > ${FILESDIR}/$${file}; \
102
		< ${FILESDIR}/$${file}.tmpl > ${FILESDIR}/$${file}; \
100
	done
103
	done
(-)print/yatex/files/DEINSTALL.tmpl (-5 / +6 lines)
Lines 10-15 Link Here
10
10
11
infodir=${INFODIR:-%INFODIR%}
11
infodir=${INFODIR:-%INFODIR%}
12
infofiles=${INFOFILES:-%INFOFILES%}
12
infofiles=${INFOFILES:-%INFOFILES%}
13
sitestartdir=${SITESTARTDIR:-%SITESTARTDIR%}
13
elispdir=${ELISPDIR:-%ELISPDIR%}
14
elispdir=${ELISPDIR:-%ELISPDIR%}
14
15
15
OptionStart=";;; configuration options for ${pkgname}"
16
OptionStart=";;; configuration options for ${pkgname}"
Lines 20-31 Link Here
20
	for file in `echo  ${infofiles} | ${SED} "s,:, ,g"`; do
21
	for file in `echo  ${infofiles} | ${SED} "s,:, ,g"`; do
21
		install-info --delete ${infodir}/${file} ${infodir}/dir
22
		install-info --delete ${infodir}/${file} ${infodir}/dir
22
	done
23
	done
23
	if  [ "`grep \"^${OptionStart}\"  ${elispdir}/site-start.el`" ]; then 
24
	if  [ "`grep \"^${OptionStart}\"  ${sitestartdir}/site-start.el`" ]; then 
24
		${ECHO} "Deleting entry for \"${pkgname}\" from ${elispdir}/site-start.el"
25
		${ECHO} "Deleting entry for \"${pkgname}\" from ${sitestartdir}/site-start.el"
25
		${SED} -e "/^${OptionStart}/,/^${OptionEnd}/d" \
26
		${SED} -e "/^${OptionStart}/,/^${OptionEnd}/d" \
26
		    ${elispdir}/site-start.el > ${elispdir}/site-start.el.bak
27
		    ${sitestartdir}/site-start.el > ${sitestartdir}/site-start.el.bak
27
		${CP} ${elispdir}/site-start.el.bak ${elispdir}/site-start.el
28
		${CP} ${sitestartdir}/site-start.el.bak ${sitestartdir}/site-start.el
28
		${RM} ${elispdir}/site-start.el.bak
29
		${RM} ${sitestartdir}/site-start.el.bak
29
	fi
30
	fi
30
else
31
else
31
	exit 0
32
	exit 0
(-)print/yatex/files/INSTALL.tmpl (-9 / +10 lines)
Lines 15-28 Link Here
15
infonodes=${INFONODES:-%INFONODES%}
15
infonodes=${INFONODES:-%INFONODES%}
16
infonodeexps=${INFONODEEXPS:-%INFONODEEXPS%}
16
infonodeexps=${INFONODEEXPS:-%INFONODEEXPS%}
17
elispdir=${ELISPDIR:-%ELISPDIR%}
17
elispdir=${ELISPDIR:-%ELISPDIR%}
18
sitestartdir=${SITESTARTDIR:-%SITESTARTDIR%}
18
dirsection=${DIRSECTION:-%DIRSECTION%}
19
dirsection=${DIRSECTION:-%DIRSECTION%}
19
20
20
OptionStart=";;; configuration options for ${pkgname}"
21
OptionStart=";;; configuration options for ${pkgname}"
21
OptionEnd=";;; End of configuration options for ${pkgname}"
22
OptionEnd=";;; End of configuration options for ${pkgname}"
22
23
23
if [ "X$2" = X"POST-INSTALL" ]; then
24
if [ "X$2" = X"POST-INSTALL" ]; then
24
	if [ ! -f ${elispdir}/site-start.el ]; then 
25
	if [ ! -f ${sitestartdir}/site-start.el ]; then 
25
		 ${TOUCH} ${elispdir}/site-start.el
26
		 ${TOUCH} ${sitestartdir}/site-start.el
26
	fi
27
	fi
27
	count=1
28
	count=1
28
	# For example, the result of `cut ttt -d : -f 2` is ttt. Why?
29
	# For example, the result of `cut ttt -d : -f 2` is ttt. Why?
Lines 49-64 Link Here
49
		install-info ${infodir}/${file} ${infodir}/dir
50
		install-info ${infodir}/${file} ${infodir}/dir
50
	done
51
	done
51
	if [ X'%ADDSITESTART%' != X ]; then
52
	if [ X'%ADDSITESTART%' != X ]; then
52
	if  [ "`${GREP} \"^${OptionStart}\"  ${elispdir}/site-start.el`" ]; then 
53
	if  [ "`${GREP} \"^${OptionStart}\"  ${sitestartdir}/site-start.el`" ]; then 
53
		${SED} -e "/^${OptionStart}/,/^${OptionEnd}/d" \
54
		${SED} -e "/^${OptionStart}/,/^${OptionEnd}/d" \
54
		  ${elispdir}/site-start.el > ${elispdir}/site-start.el.bak
55
		  ${sitestartdir}/site-start.el > ${sitestartdir}/site-start.el.bak
55
		${CP} ${elispdir}/site-start.el.bak ${elispdir}/site-start.el
56
		${CP} ${sitestartdir}/site-start.el.bak ${sitestartdir}/site-start.el
56
	fi
57
	fi
57
	${ECHO} "Adding entry for \"${pkgname}\" to ${elispdir}/site-start.el"
58
	${ECHO} "Adding entry for \"${pkgname}\" to ${sitestartdir}/site-start.el"
58
	${ECHO} "${OptionStart}" >> ${elispdir}/site-start.el
59
	${ECHO} "${OptionStart}" >> ${sitestartdir}/site-start.el
59
	/usr/bin/printf "%ADDSITESTART%" | \
60
	/usr/bin/printf "%ADDSITESTART%" | \
60
	    ${SED} "s/^ //" >> ${elispdir}/site-start.el
61
	    ${SED} "s/^ //" >> ${sitestartdir}/site-start.el
61
	${ECHO} "${OptionEnd}" >> ${elispdir}/site-start.el
62
	${ECHO} "${OptionEnd}" >> ${sitestartdir}/site-start.el
62
	fi
63
	fi
63
	exit 0
64
	exit 0
64
else
65
else

Return to bug 8224