From 67dd26d0a9c26d31b50f9355833d790cc2cb5b04 Mon Sep 17 00:00:00 2001 From: uebayasi Date: Sat, 28 Sep 2002 14:19:51 +0000 Subject: Nuke a bogus invocation of 'pkg_info -I' and use 'pkg_info -e' instead. Simplify the '!=' lines. Pointed out by wiz (a.k.a. wizd(8)). --- mk/emacs.mk | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'mk') diff --git a/mk/emacs.mk b/mk/emacs.mk index e9a97a06e88..b07e973c854 100644 --- a/mk/emacs.mk +++ b/mk/emacs.mk @@ -1,4 +1,4 @@ -# $NetBSD: emacs.mk,v 1.3 2002/09/16 12:51:34 uebayasi Exp $ +# $NetBSD: emacs.mk,v 1.4 2002/09/28 14:19:51 uebayasi Exp $ # # A Makefile fragment for Emacs Lisp packages. # @@ -49,12 +49,7 @@ _EMACS_VERSION_${v}_OK= yes # Look for Emacs 21/Emacs 20 # -_TMP!= if ${PKG_TOOLS_BIN}/pkg_info -e emacs >/dev/null 2>&1; then \ - ${PKG_TOOLS_BIN}/pkg_info -I emacs 2>/dev/null | \ - ${AWK} '{print $$1}'; \ - else \ - ${ECHO}; \ - fi +_TMP!= ${PKG_TOOLS_BIN}/pkg_info -e emacs || ${ECHO} .if ${_TMP} != "" _EMACS_VERSION_EMACS_FULL:= ${_TMP} _EMACS_VERSION_EMACS= ${_EMACS_VERSION_EMACS_FULL:C/^.*-//} @@ -68,12 +63,7 @@ _EMACS_VERSION_emacs20_INSTALLED= yes # Look for XEmacs 21.5/XEmacs 21.1 # -_TMP!= if ${PKG_TOOLS_BIN}/pkg_info -e xemacs >/dev/null 2>&1; then \ - ${PKG_TOOLS_BIN}/pkg_info -I xemacs 2>/dev/null | \ - ${AWK} '{print $$1}'; \ - else \ - ${ECHO}; \ - fi +_TMP!= ${PKG_TOOLS_BIN}/pkg_info -e xemacs || ${ECHO} .if ${_TMP} != "" _EMACS_VERSION_XEMACS_FULL:= ${_TMP:C/^.*-//} _EMACS_VERSION_XEMACS= ${_EMACS_VERSION_XEMACS_FULL:C/^.*-//} -- cgit v1.2.3