pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/shells/tcsh Avoid using != to define OS_VER .. use :sh...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c249b589a286
branches:  trunk
changeset: 493185:c249b589a286
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Apr 28 23:29:06 2005 +0000

description:
Avoid using != to define OS_VER .. use :sh instead to defer evaluation
until the make targets are invoked.  This avoids needing ${ECHO} and ${SED}
in the top-level make.

diffstat:

 shells/tcsh/Makefile |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 42d1c2e11b93 -r c249b589a286 shells/tcsh/Makefile
--- a/shells/tcsh/Makefile      Thu Apr 28 23:23:41 2005 +0000
+++ b/shells/tcsh/Makefile      Thu Apr 28 23:29:06 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.49 2005/04/11 21:47:21 tv Exp $
+# $NetBSD: Makefile,v 1.50 2005/04/28 23:29:06 jlam Exp $
 #
 
 DISTNAME=      tcsh-6.14.00
@@ -28,8 +28,8 @@
 .include "../../mk/bsd.prefs.mk"
 
 .if ${OPSYS} == "SunOS"
-OS_VER!=       ${ECHO} ${OS_VERSION} | ${SED} -e 's|5\.|2.|'
-LOWER_OPSYS=   solaris${OS_VER}
+OS_VER_cmd=    ${ECHO} ${OS_VERSION} | ${SED} -e 's|5\.|2.|'
+LOWER_OPSYS=   solaris${OS_VER_cmd:sh}
 .endif
 
 PKG_SHELL?=    ${PREFIX}/bin/tcsh



Home | Main Index | Thread Index | Old Index