1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00

Improve pre-patch following hlserver-cs/Makefile rev 1.10

Submitted by:	maintainer
This commit is contained in:
Mario Sergio Fujikawa Ferreira 2001-05-10 02:11:51 +00:00
parent 50bc1c6fed
commit bfa69bbe51
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=42473

View File

@ -46,11 +46,9 @@ HL_PROGRAM= hlds_run
pre-patch:
# remove trailing ^M
.for file in *.cfg */*.cfg *.gam */*.gam *.htm */*.htm \
*.inf */*.inf *.lst */*.lst *.sc */*.sc \
*.scr */*.scr *.txt */*.txt
@${PERL} -pi -ne 's!\r\n!\n!' ${WRKSRC}/${file} >/dev/null 2>/dev/null
.endfor
@find -E ${WRKSRC} -type f \
-iregex ".*\.(bat|cfg|gam|htm|html|inf|ini|lst|sc|scr|txt)" \
-exec ${PERL} -pi -ne 's!\r\n!\n!' {} 1>/dev/null 2>&1 \;
do-install: install-files scan-libs