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

(-)book.sgml (+16 lines)
Lines 4986-4991 Link Here
4986
	    package, so you should probably display it from the
5004
	    package, so you should probably display it from the
4987
	    <maketarget>post-install</maketarget> target yourself.</para>
5005
	    <maketarget>post-install</maketarget> target yourself.</para>
4988
	</note>
5006
	</note>
5007
5008
	<para>Sometimes you have your <filename>pkg-message</filename> semi-ready,
5009
	  that is, having to substitute some text in it with actual run-time
5010
	  value.  In this case, make sure you preserve modified
5011
	  <filename>pkg-message</filename> since you likely need it to make the
5012
	  package.  For example:</para>
5013
5014
	<programlisting>post-install:
5015
	@${SED} -e 's|$${DATADIR}|${DATADIR}|g' ${.CURDIR}/pkg-message > ${PKGMESSAGE}
5016
	@${CAT} ${PKGMESSAGE}</programlisting>
5017
5018
	<para>Contrary, wrong way would be:</para>
5019
5020
	<programlisting>post-install:
5021
	@${SED} -e 's|$${DATADIR}|${DATADIR}|g' ${PKGMESSAGE}</programlisting>
5022
4989
      </sect1>
5023
      </sect1>
4990
5024
4991
      <sect1 id="pkg-install">
5025
      <sect1 id="pkg-install">

Return to bug 69271