mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
My modification (Rev. 1.3 -> 1.4) is incorrect, and
Mr. Okada's (PR: ports/10294) is right! Sorry!
This commit is contained in:
parent
40b3ee8a7f
commit
bbf434ec1d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=17005
@ -22,8 +22,7 @@ OptionStart=";;; configuration options for ${pkgname}"
|
||||
OptionEnd=";;; End of configuration options for ${pkgname}"
|
||||
|
||||
if [ "X$2" = X"POST-INSTALL" ]; then
|
||||
if [ X"${sitestartdir}" != X ] && \
|
||||
[ ! -f ${sitestartdir}/site-start.el ]; then
|
||||
if [ ! -f ${sitestartdir}/site-start.el ]; then
|
||||
${TOUCH} ${sitestartdir}/site-start.el
|
||||
fi
|
||||
count=1
|
||||
@ -50,11 +49,12 @@ if [ "X$2" = X"POST-INSTALL" ]; then
|
||||
for file in `${ECHO} ${infofiles} | ${SED} "s,:, ,g"`; do
|
||||
install-info ${infodir}/${file} ${infodir}/dir
|
||||
done
|
||||
if [ X"${sitestartdir}" != X ] && \
|
||||
[ X"`${GREP} \"^${OptionStart}\" ${sitestartdir}/site-start.el`" = X ]; then
|
||||
${SED} -e "/^${OptionStart}/,/^${OptionEnd}/d" \
|
||||
${sitestartdir}/site-start.el > ${sitestartdir}/site-start.el.bak
|
||||
${CP} ${sitestartdir}/site-start.el.bak ${sitestartdir}/site-start.el
|
||||
if [ X"${sitestartdir}" != X ]; then
|
||||
if [ "`${GREP} \"^${OptionStart}\" ${sitestartdir}/site-start.el`" ]; then
|
||||
${SED} -e "/^${OptionStart}/,/^${OptionEnd}/d" \
|
||||
${sitestartdir}/site-start.el > ${sitestartdir}/site-start.el.bak
|
||||
${CP} ${sitestartdir}/site-start.el.bak ${sitestartdir}/site-start.el
|
||||
fi
|
||||
${ECHO} "Adding entry for \"${pkgname}\" to ${sitestartdir}/site-start.el"
|
||||
${ECHO} "${OptionStart}" >> ${sitestartdir}/site-start.el
|
||||
/usr/bin/printf "%ADDSITESTART%" | \
|
||||
|
Loading…
Reference in New Issue
Block a user