From a09a73a4a3fdb0381667bfd1d5c84a47220028f8 Mon Sep 17 00:00:00 2001 From: jasper Date: Sat, 18 Jul 2015 14:57:48 +0000 Subject: [PATCH] use sed -i --- chinese/cconv/Makefile | 6 +++--- chinese/hc/Makefile | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/chinese/cconv/Makefile b/chinese/cconv/Makefile index 72ee7087a75..61bf27bd721 100644 --- a/chinese/cconv/Makefile +++ b/chinese/cconv/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.7 2015/03/16 18:07:37 naddy Exp $ +# $OpenBSD: Makefile,v 1.8 2015/07/18 14:57:48 jasper Exp $ COMMENT= simplified-traditional chinese translate tool @@ -25,6 +25,6 @@ CONFIGURE_STYLE=gnu FAKE_FLAGS= includedir=${PREFIX}/include/cconv/ post-patch: - @perl -i -pe 's:UTF-TW:UTF8-TW:g' ${WRKSRC}/main.c - + @sed -i 's:UTF-TW:UTF8-TW:g' ${WRKSRC}/main.c + .include diff --git a/chinese/hc/Makefile b/chinese/hc/Makefile index b7908659dd4..12e9505ab19 100644 --- a/chinese/hc/Makefile +++ b/chinese/hc/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.12 2015/01/22 18:41:16 naddy Exp $ +# $OpenBSD: Makefile,v 1.13 2015/07/18 14:57:48 jasper Exp $ COMMENT= convert between GB and BIG-5 codes @@ -23,7 +23,7 @@ ALL_TARGET= hc b2g g2b NO_TEST= Yes pre-patch: - perl -pi -e 's|malloc.h|stdlib.h|' ${WRKSRC}/hclib.c + sed -i 's|malloc.h|stdlib.h|' ${WRKSRC}/hclib.c do-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/hc