aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2007-01-31 18:51:18 +0000
committerPav Lucistnik <pav@FreeBSD.org>2007-01-31 18:51:18 +0000
commitb1bb8f3ce43d200b5626d1a3a75523f4273aabd9 (patch)
tree6dd5b8108e805e3ae4f784689ab46eb85be6425d
parentc62d79fb8ca85c9f9c5296691af9f11c6d4758ea (diff)
Notes
-rw-r--r--en_US.ISO8859-1/books/porters-handbook/book.sgml12
1 files changed, 11 insertions, 1 deletions
diff --git a/en_US.ISO8859-1/books/porters-handbook/book.sgml b/en_US.ISO8859-1/books/porters-handbook/book.sgml
index cb4b81c869..726f1aa235 100644
--- a/en_US.ISO8859-1/books/porters-handbook/book.sgml
+++ b/en_US.ISO8859-1/books/porters-handbook/book.sgml
@@ -697,7 +697,17 @@ PLIST_DIRS= lib/X11/oneko</programlisting>
<filename>Makefile</filename>. A list of files to convert can
be specified:</para>
- <programlisting>USE_DOS2UNIX= util.c util.h</programlisting>
+ <programlisting>USE_DOS2UNIX= util.c util.h</programlisting>
+
+ <para>If you want to convert a group of files across subdirectories,
+ <makevar>DOS2UNIX_REGEX</makevar> can be used. It's argument is
+ a <command>find</command> compatible regular expression. More on
+ the format is in &man.re.format.7;. This option is useful for
+ converting all files of a given extension, for example all source
+ code files leaving binary files intact:</para>
+
+ <programlisting>USE_DOS2UNIX= yes
+DOS2UNIX_REGEX= .*\.(c|cpp|h)</programlisting>
</sect1>
<sect1 id="slow-configure">