pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Compute OS_VERSION on AIX directly using make subst...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/47f0bee21aea
branches:  trunk
changeset: 531438:47f0bee21aea
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Jul 30 14:10:36 2007 +0000

description:
Compute OS_VERSION on AIX directly using make substitution instead of
forking a shell and sed.

diffstat:

 mk/bsd.prefs.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 46c96166d050 -r 47f0bee21aea mk/bsd.prefs.mk
--- a/mk/bsd.prefs.mk   Mon Jul 30 14:07:07 2007 +0000
+++ b/mk/bsd.prefs.mk   Mon Jul 30 14:10:36 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.257 2007/07/30 14:07:07 joerg Exp $
+# $NetBSD: bsd.prefs.mk,v 1.258 2007/07/30 14:10:36 joerg Exp $
 #
 # Make file, included to get the site preferences, if any.  Should
 # only be included by package Makefiles before any .if defined()
@@ -106,7 +106,7 @@
 .  else
 _OS_VERSION!=          echo `${UNAME} -v`.`${UNAME} -r`
 .  endif
-OS_VERSION!=           echo ${_OS_VERSION} | sed -e 's,\([0-9]*\.[0-9]*\).*,\1,'
+OS_VERSION=            ${_OS_VERSION:C/\([0-9]*\.[0-9]*\).*/\1/}
 LOWER_OS_VERSION=      ${OS_VERSION}
 LOWER_OPSYS_VERSUFFIX= ${_OS_VERSION}
 LOWER_OPSYS?=          aix



Home | Main Index | Thread Index | Old Index