aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/openjade
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2001-03-05 05:39:19 +0800
committerlioux <lioux@FreeBSD.org>2001-03-05 05:39:19 +0800
commitc6dd1347e26270d014fc011a0a179336df14f03e (patch)
tree054fbf7e07d0e07930ef56f57ba8cfd922b538ee /textproc/openjade
parent63451d3dce9794c69aaf92bf3034dfe230d16b91 (diff)
downloadfreebsd-ports-graphics-c6dd1347e26270d014fc011a0a179336df14f03e.tar.gz
freebsd-ports-graphics-c6dd1347e26270d014fc011a0a179336df14f03e.tar.zst
freebsd-ports-graphics-c6dd1347e26270d014fc011a0a179336df14f03e.zip
Switch from AWK to SED for CFLAGS sanitization. It is cleaner,
more readable and follows most ports using similar solutions. Besides, it is more lightweight. Use the same AWK pattern with SED adding the option -E for extended pattern matching. Submitted by: roam
Diffstat (limited to 'textproc/openjade')
-rw-r--r--textproc/openjade/Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/textproc/openjade/Makefile b/textproc/openjade/Makefile
index b2afdadffb9..46be4665ae2 100644
--- a/textproc/openjade/Makefile
+++ b/textproc/openjade/Makefile
@@ -34,11 +34,7 @@ post-install:
# 'march=-mpentium -Os' produces core dumps with certain input files
# Therefore, we'd better remove all machine optimizations and any -O
# other than -O{0,1,}. Idea taken from palm/prc-tools-gcc.
-# The following sed does not reproduce the awk result. Odd.
-# ${SED} -e 's/-m[0-9a-zA-Z]+(=[0-9a-zA-Z]*)?//g' -e 's/-O[s2-9]+//g'
-CFLAGS!= ${ECHO} "${CFLAGS}" | ${AWK} 'BEGIN \
- { RS="-m[0-9a-zA-Z]+(=[0-9a-zA-Z]*)?|-O[s2-9]+" ; \
- ORS="" } ; \
- { if (RT == "") { print $0 } else print }'
+CFLAGS!= ${ECHO} "${CFLAGS}" | ${SED} -E -e 's/-m[0-9a-zA-Z]+(=[0-9a-zA-Z]*)?//g' \
+ -e 's/-O[s2-9]+//g'
.include <bsd.port.post.mk>