From 4e657c8927bccc2fc7707a1306c50945efe37862 Mon Sep 17 00:00:00 2001 From: Ernst de Haan Date: Fri, 11 Jul 2003 07:14:31 +0000 Subject: Patch to delete the symbol CR (carriage return) in some files. Bumped PORTREVISION. Submitted by: Ivanchenko V. I. --- java/jboss5/Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'java/jboss5') diff --git a/java/jboss5/Makefile b/java/jboss5/Makefile index 0de2ee499485..ea9000c03f49 100644 --- a/java/jboss5/Makefile +++ b/java/jboss5/Makefile @@ -7,6 +7,7 @@ PORTNAME= ${APP_TITLE:L} PORTVERSION= 3.0.7 +PORTREVISION= 1 CATEGORIES= java MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -49,8 +50,19 @@ WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work .include post-patch: - @${ECHO_CMD} -n ">> Removing unneeded files..." - @${RM} -f `${FIND} ${WRKSRC} -name '*.bat'` `${FIND} ${WRKSRC} -name '*.orig'` `${FIND} ${WRKSRC} -name '*.exe'` + @${ECHO_CMD} -n ">> Deleting the symbol CR (carriage return) in some files and removing unneeded files..." + @${FIND} ${WRKSRC} -type f \ + -iname '*.mf' -or \ + -iname '*.dtd' -or \ + -iname '*.txt' -or \ + -iname '*.xml' -or \ + -iname '*.conf' -or \ + -iname '*.java' -or \ + -iname '*.html' -or \ + -iname '*.policy' -or \ + -iname '*.properties' | \ + ${XARGS} -n 10 -x ${SED} -i .orig -e "s|"`printf '\015'`"||g" + @cd ${WRKSRC} && ${FIND} . -type f -name "*.orig" -print -or -iname "*.bat" -print -or -iname "*.exe" -print | ${XARGS} ${RM} -f @${ECHO_CMD} " [ DONE ]" @${CHMOD} -R 0644 ${WRKSRC} @${CHMOD} 0755 `${FIND} ${WRKSRC} -type d` -- cgit v1.2.3