Replace tr by DOS2UNIX: when using tr with LANG or LC_ALL set to a

multibyte locale, "Illegal byte sequence" were reported.

Reported by:	Derek Kulinski <takeda (at) takeda.tk>
This commit is contained in:
Thierry Thomas 2006-02-11 21:20:18 +00:00
parent d16f7bfb92
commit c60f363713
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=155785

View File

@ -18,6 +18,7 @@ COMMENT= A free PHP class to generate PDF files with pure PHP
USE_PHP= zlib
USE_DOS2UNIX= yes
FETCH_CMD= /usr/bin/fetch -ARr -o ${DISTDIR}/${DISTFILES}
NO_BUILD= yes
@ -27,7 +28,6 @@ SUB_FILES= pkg-message
SUB_LIST= FPDF_DIR=${FPDF_DIR}
PLIST_SUB= FPDF_DIR=${FPDF_DIR}
EXT2CNV= afm htm php txt
DOCS= FAQ.htm doc/* fpdf.css histo.htm install.txt tutoriel
do-fetch:
@ -37,11 +37,6 @@ do-fetch:
fi
pre-patch:
.for ext in ${EXT2CNV}
@for f in `${FIND} ${WRKSRC} -type f -name "*.${ext}"` ; do \
${TR} -d '\r' < $$f > $$f.dos && \
${MV} $$f.dos $$f ; done
.endfor
@${FIND} ${WRKSRC} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
do-install: