No need to create info/dir by yourself -- install-info does it now.
This commit is contained in:
parent
3199ea6310
commit
96e2c89d72
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=5600
4 changed files with 44 additions and 84 deletions
|
@ -1,7 +1,7 @@
|
|||
<!--
|
||||
The FreeBSD Documentation Project
|
||||
|
||||
$FreeBSD$
|
||||
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/ports/chapter.sgml,v 1.54 1999/09/06 06:53:02 peter Exp $
|
||||
-->
|
||||
|
||||
<chapter id="ports">
|
||||
|
@ -2686,10 +2686,12 @@ diff -u -r1.15 PLIST
|
|||
|
||||
<step>
|
||||
<para>Add a <maketarget>post-install</maketarget> target to the
|
||||
<filename>Makefile</filename> to create a <filename>dir</filename>
|
||||
file if it is not there. Also, call
|
||||
<maketarget>install-info</maketarget> with the installed info
|
||||
files.</para>
|
||||
<filename>Makefile</filename> to call
|
||||
<maketarget>install-info</maketarget> with the installed
|
||||
info files. (It is no longer necessary to create the
|
||||
<filename>dir</filename> file yourself;
|
||||
<command>install-info</command> automatically creates this
|
||||
file if it does not exist.)</para>
|
||||
|
||||
<programlisting>
|
||||
Index: Makefile
|
||||
|
@ -2699,34 +2701,23 @@ retrieving revision 1.26
|
|||
diff -u -r1.26 Makefile
|
||||
--- Makefile 1996/11/19 13:14:40 1.26
|
||||
+++ Makefile 1997/05/20 10:25:09 1.28
|
||||
@@ -20,5 +20,11 @@
|
||||
@@ -20,5 +20,8 @@
|
||||
post-install:
|
||||
.for file in emacs-19.34 emacsclient etags ctags b2m
|
||||
strip ${PREFIX}/bin/${file}
|
||||
.endfor
|
||||
+ if [ ! -f ${PREFIX}/info/dir ]; then \
|
||||
+ ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
|
||||
+ fi
|
||||
+.for info in emacs vip viper forms gnus mh-e cl sc dired-x ediff ccmode
|
||||
+ install-info ${PREFIX}/info/${info} ${PREFIX}/info/dir
|
||||
+.endfor
|
||||
|
||||
.include <bsd.port.mk></programlisting>
|
||||
|
||||
<para>Do not use anything other than
|
||||
<filename>/usr/share/info/dir</filename> and the above command to
|
||||
create a new info file. In fact, I would add the first three lines
|
||||
of the above patch to <filename>bsd.port.mk</filename> if you (the
|
||||
porter) would not have to do it in <filename>PLIST</filename> by
|
||||
yourself anyway.</para>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<para>Edit <filename>PLIST</filename> and add equivalent
|
||||
<literal>@exec</literal> statements and also
|
||||
<literal>@unexec</literal> for <command>pkg_delete</command>. You
|
||||
do not need to delete <filename>info/dir</filename> with
|
||||
<literal>@unexec</literal>.</para>
|
||||
<literal>@unexec</literal> for
|
||||
<command>pkg_delete</command>.</para>
|
||||
|
||||
<programlisting>
|
||||
Index: pkg/PLIST
|
||||
|
@ -2736,7 +2727,7 @@ retrieving revision 1.15
|
|||
diff -u -r1.15 PLIST
|
||||
--- PLIST 1997/03/04 08:04:00 1.15
|
||||
+++ PLIST 1997/05/20 10:25:12 1.17
|
||||
@@ -16,7 +14,15 @@
|
||||
@@ -16,7 +14,14 @@
|
||||
man/man1/etags.1.gz
|
||||
man/man1/ctags.1.gz
|
||||
+@unexec install-info --delete %D/info/emacs %D/info/dir
|
||||
|
@ -2747,7 +2738,6 @@ diff -u -r1.15 PLIST
|
|||
@@ -87,6 +94,18 @@
|
||||
info/viper-3
|
||||
info/viper-4
|
||||
+@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
|
||||
+@exec install-info %D/info/emacs %D/info/dir
|
||||
:
|
||||
+@exec install-info %D/info/ccmode %D/info/dir
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!--
|
||||
The FreeBSD Documentation Project
|
||||
|
||||
$FreeBSD$
|
||||
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/ports/chapter.sgml,v 1.54 1999/09/06 06:53:02 peter Exp $
|
||||
-->
|
||||
|
||||
<chapter id="ports">
|
||||
|
@ -2686,10 +2686,12 @@ diff -u -r1.15 PLIST
|
|||
|
||||
<step>
|
||||
<para>Add a <maketarget>post-install</maketarget> target to the
|
||||
<filename>Makefile</filename> to create a <filename>dir</filename>
|
||||
file if it is not there. Also, call
|
||||
<maketarget>install-info</maketarget> with the installed info
|
||||
files.</para>
|
||||
<filename>Makefile</filename> to call
|
||||
<maketarget>install-info</maketarget> with the installed
|
||||
info files. (It is no longer necessary to create the
|
||||
<filename>dir</filename> file yourself;
|
||||
<command>install-info</command> automatically creates this
|
||||
file if it does not exist.)</para>
|
||||
|
||||
<programlisting>
|
||||
Index: Makefile
|
||||
|
@ -2699,34 +2701,23 @@ retrieving revision 1.26
|
|||
diff -u -r1.26 Makefile
|
||||
--- Makefile 1996/11/19 13:14:40 1.26
|
||||
+++ Makefile 1997/05/20 10:25:09 1.28
|
||||
@@ -20,5 +20,11 @@
|
||||
@@ -20,5 +20,8 @@
|
||||
post-install:
|
||||
.for file in emacs-19.34 emacsclient etags ctags b2m
|
||||
strip ${PREFIX}/bin/${file}
|
||||
.endfor
|
||||
+ if [ ! -f ${PREFIX}/info/dir ]; then \
|
||||
+ ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
|
||||
+ fi
|
||||
+.for info in emacs vip viper forms gnus mh-e cl sc dired-x ediff ccmode
|
||||
+ install-info ${PREFIX}/info/${info} ${PREFIX}/info/dir
|
||||
+.endfor
|
||||
|
||||
.include <bsd.port.mk></programlisting>
|
||||
|
||||
<para>Do not use anything other than
|
||||
<filename>/usr/share/info/dir</filename> and the above command to
|
||||
create a new info file. In fact, I would add the first three lines
|
||||
of the above patch to <filename>bsd.port.mk</filename> if you (the
|
||||
porter) would not have to do it in <filename>PLIST</filename> by
|
||||
yourself anyway.</para>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<para>Edit <filename>PLIST</filename> and add equivalent
|
||||
<literal>@exec</literal> statements and also
|
||||
<literal>@unexec</literal> for <command>pkg_delete</command>. You
|
||||
do not need to delete <filename>info/dir</filename> with
|
||||
<literal>@unexec</literal>.</para>
|
||||
<literal>@unexec</literal> for
|
||||
<command>pkg_delete</command>.</para>
|
||||
|
||||
<programlisting>
|
||||
Index: pkg/PLIST
|
||||
|
@ -2736,7 +2727,7 @@ retrieving revision 1.15
|
|||
diff -u -r1.15 PLIST
|
||||
--- PLIST 1997/03/04 08:04:00 1.15
|
||||
+++ PLIST 1997/05/20 10:25:12 1.17
|
||||
@@ -16,7 +14,15 @@
|
||||
@@ -16,7 +14,14 @@
|
||||
man/man1/etags.1.gz
|
||||
man/man1/ctags.1.gz
|
||||
+@unexec install-info --delete %D/info/emacs %D/info/dir
|
||||
|
@ -2747,7 +2738,6 @@ diff -u -r1.15 PLIST
|
|||
@@ -87,6 +94,18 @@
|
||||
info/viper-3
|
||||
info/viper-4
|
||||
+@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
|
||||
+@exec install-info %D/info/emacs %D/info/dir
|
||||
:
|
||||
+@exec install-info %D/info/ccmode %D/info/dir
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!--
|
||||
The FreeBSD Documentation Project
|
||||
|
||||
$FreeBSD$
|
||||
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/ports/chapter.sgml,v 1.54 1999/09/06 06:53:02 peter Exp $
|
||||
-->
|
||||
|
||||
<chapter id="ports">
|
||||
|
@ -2686,10 +2686,12 @@ diff -u -r1.15 PLIST
|
|||
|
||||
<step>
|
||||
<para>Add a <maketarget>post-install</maketarget> target to the
|
||||
<filename>Makefile</filename> to create a <filename>dir</filename>
|
||||
file if it is not there. Also, call
|
||||
<maketarget>install-info</maketarget> with the installed info
|
||||
files.</para>
|
||||
<filename>Makefile</filename> to call
|
||||
<maketarget>install-info</maketarget> with the installed
|
||||
info files. (It is no longer necessary to create the
|
||||
<filename>dir</filename> file yourself;
|
||||
<command>install-info</command> automatically creates this
|
||||
file if it does not exist.)</para>
|
||||
|
||||
<programlisting>
|
||||
Index: Makefile
|
||||
|
@ -2699,34 +2701,23 @@ retrieving revision 1.26
|
|||
diff -u -r1.26 Makefile
|
||||
--- Makefile 1996/11/19 13:14:40 1.26
|
||||
+++ Makefile 1997/05/20 10:25:09 1.28
|
||||
@@ -20,5 +20,11 @@
|
||||
@@ -20,5 +20,8 @@
|
||||
post-install:
|
||||
.for file in emacs-19.34 emacsclient etags ctags b2m
|
||||
strip ${PREFIX}/bin/${file}
|
||||
.endfor
|
||||
+ if [ ! -f ${PREFIX}/info/dir ]; then \
|
||||
+ ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
|
||||
+ fi
|
||||
+.for info in emacs vip viper forms gnus mh-e cl sc dired-x ediff ccmode
|
||||
+ install-info ${PREFIX}/info/${info} ${PREFIX}/info/dir
|
||||
+.endfor
|
||||
|
||||
.include <bsd.port.mk></programlisting>
|
||||
|
||||
<para>Do not use anything other than
|
||||
<filename>/usr/share/info/dir</filename> and the above command to
|
||||
create a new info file. In fact, I would add the first three lines
|
||||
of the above patch to <filename>bsd.port.mk</filename> if you (the
|
||||
porter) would not have to do it in <filename>PLIST</filename> by
|
||||
yourself anyway.</para>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<para>Edit <filename>PLIST</filename> and add equivalent
|
||||
<literal>@exec</literal> statements and also
|
||||
<literal>@unexec</literal> for <command>pkg_delete</command>. You
|
||||
do not need to delete <filename>info/dir</filename> with
|
||||
<literal>@unexec</literal>.</para>
|
||||
<literal>@unexec</literal> for
|
||||
<command>pkg_delete</command>.</para>
|
||||
|
||||
<programlisting>
|
||||
Index: pkg/PLIST
|
||||
|
@ -2736,7 +2727,7 @@ retrieving revision 1.15
|
|||
diff -u -r1.15 PLIST
|
||||
--- PLIST 1997/03/04 08:04:00 1.15
|
||||
+++ PLIST 1997/05/20 10:25:12 1.17
|
||||
@@ -16,7 +14,15 @@
|
||||
@@ -16,7 +14,14 @@
|
||||
man/man1/etags.1.gz
|
||||
man/man1/ctags.1.gz
|
||||
+@unexec install-info --delete %D/info/emacs %D/info/dir
|
||||
|
@ -2747,7 +2738,6 @@ diff -u -r1.15 PLIST
|
|||
@@ -87,6 +94,18 @@
|
||||
info/viper-3
|
||||
info/viper-4
|
||||
+@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
|
||||
+@exec install-info %D/info/emacs %D/info/dir
|
||||
:
|
||||
+@exec install-info %D/info/ccmode %D/info/dir
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!--
|
||||
The FreeBSD Documentation Project
|
||||
|
||||
$FreeBSD$
|
||||
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/ports/chapter.sgml,v 1.54 1999/09/06 06:53:02 peter Exp $
|
||||
-->
|
||||
|
||||
<chapter id="ports">
|
||||
|
@ -2686,10 +2686,12 @@ diff -u -r1.15 PLIST
|
|||
|
||||
<step>
|
||||
<para>Add a <maketarget>post-install</maketarget> target to the
|
||||
<filename>Makefile</filename> to create a <filename>dir</filename>
|
||||
file if it is not there. Also, call
|
||||
<maketarget>install-info</maketarget> with the installed info
|
||||
files.</para>
|
||||
<filename>Makefile</filename> to call
|
||||
<maketarget>install-info</maketarget> with the installed
|
||||
info files. (It is no longer necessary to create the
|
||||
<filename>dir</filename> file yourself;
|
||||
<command>install-info</command> automatically creates this
|
||||
file if it does not exist.)</para>
|
||||
|
||||
<programlisting>
|
||||
Index: Makefile
|
||||
|
@ -2699,34 +2701,23 @@ retrieving revision 1.26
|
|||
diff -u -r1.26 Makefile
|
||||
--- Makefile 1996/11/19 13:14:40 1.26
|
||||
+++ Makefile 1997/05/20 10:25:09 1.28
|
||||
@@ -20,5 +20,11 @@
|
||||
@@ -20,5 +20,8 @@
|
||||
post-install:
|
||||
.for file in emacs-19.34 emacsclient etags ctags b2m
|
||||
strip ${PREFIX}/bin/${file}
|
||||
.endfor
|
||||
+ if [ ! -f ${PREFIX}/info/dir ]; then \
|
||||
+ ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
|
||||
+ fi
|
||||
+.for info in emacs vip viper forms gnus mh-e cl sc dired-x ediff ccmode
|
||||
+ install-info ${PREFIX}/info/${info} ${PREFIX}/info/dir
|
||||
+.endfor
|
||||
|
||||
.include <bsd.port.mk></programlisting>
|
||||
|
||||
<para>Do not use anything other than
|
||||
<filename>/usr/share/info/dir</filename> and the above command to
|
||||
create a new info file. In fact, I would add the first three lines
|
||||
of the above patch to <filename>bsd.port.mk</filename> if you (the
|
||||
porter) would not have to do it in <filename>PLIST</filename> by
|
||||
yourself anyway.</para>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<para>Edit <filename>PLIST</filename> and add equivalent
|
||||
<literal>@exec</literal> statements and also
|
||||
<literal>@unexec</literal> for <command>pkg_delete</command>. You
|
||||
do not need to delete <filename>info/dir</filename> with
|
||||
<literal>@unexec</literal>.</para>
|
||||
<literal>@unexec</literal> for
|
||||
<command>pkg_delete</command>.</para>
|
||||
|
||||
<programlisting>
|
||||
Index: pkg/PLIST
|
||||
|
@ -2736,7 +2727,7 @@ retrieving revision 1.15
|
|||
diff -u -r1.15 PLIST
|
||||
--- PLIST 1997/03/04 08:04:00 1.15
|
||||
+++ PLIST 1997/05/20 10:25:12 1.17
|
||||
@@ -16,7 +14,15 @@
|
||||
@@ -16,7 +14,14 @@
|
||||
man/man1/etags.1.gz
|
||||
man/man1/ctags.1.gz
|
||||
+@unexec install-info --delete %D/info/emacs %D/info/dir
|
||||
|
@ -2747,7 +2738,6 @@ diff -u -r1.15 PLIST
|
|||
@@ -87,6 +94,18 @@
|
||||
info/viper-3
|
||||
info/viper-4
|
||||
+@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
|
||||
+@exec install-info %D/info/emacs %D/info/dir
|
||||
:
|
||||
+@exec install-info %D/info/ccmode %D/info/dir
|
||||
|
|
Loading…
Reference in a new issue