diff --git a/en_US.ISO8859-1/books/porters-handbook/slow-porting/chapter.xml b/en_US.ISO8859-1/books/porters-handbook/slow-porting/chapter.xml index 0a95b46099..7ff9dcd493 100644 --- a/en_US.ISO8859-1/books/porters-handbook/slow-porting/chapter.xml +++ b/en_US.ISO8859-1/books/porters-handbook/slow-porting/chapter.xml @@ -441,6 +441,14 @@ DOS2UNIX_REGEX= .*\.([ch]|cpp) USES= dos2unix DOS2UNIX_GLOB= *.c *.cpp *.h + + If there are more than one distribution file and some + other than the default need to have files converted, the base + directory for the conversions can be changed so that they are + also converted. + + USES= dos2unix +DOS2UNIX_WRKSRC= ${WRKDIR} diff --git a/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml b/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml index f8c8c8d281..0680dc250a 100644 --- a/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml +++ b/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml @@ -355,7 +355,7 @@ Possible arguments: (none) The port has files with line endings in - DOS format which need to be converted. Three + DOS format which need to be converted. Four variables can be set to control which files will be converted. The default is to convert all files, including binaries. See DOS2UNIX_GLOB: match file names based on a glob pattern. + + + DOS2UNIX_WRKSRC: the directory from + which to start doing the conversions, defaults to + ${WRKSRC}. +