summaryrefslogtreecommitdiff
path: root/games/halflifeserver/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/halflifeserver/Makefile')
-rw-r--r--games/halflifeserver/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/games/halflifeserver/Makefile b/games/halflifeserver/Makefile
index f57ce57c772e..a61c25cab004 100644
--- a/games/halflifeserver/Makefile
+++ b/games/halflifeserver/Makefile
@@ -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