pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Use variable substitution instead of calling extern...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/46c96166d050
branches:  trunk
changeset: 531437:46c96166d050
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Jul 30 14:07:07 2007 +0000

description:
Use variable substitution instead of calling external cut to
compute LOWER_OPSYS_VERSUFFIX.

diffstat:

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

diffs (27 lines):

diff -r 4460ac3887f4 -r 46c96166d050 mk/bsd.prefs.mk
--- a/mk/bsd.prefs.mk   Mon Jul 30 14:03:18 2007 +0000
+++ b/mk/bsd.prefs.mk   Mon Jul 30 14:07:07 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.256 2007/07/29 18:27:05 joerg Exp $
+# $NetBSD: bsd.prefs.mk,v 1.257 2007/07/30 14:07:07 joerg Exp $
 #
 # Make file, included to get the site preferences, if any.  Should
 # only be included by package Makefiles before any .if defined()
@@ -120,7 +120,7 @@
 LOWER_ARCH!=           ${UNAME} -p
 MACHINE_ARCH=          ${LOWER_ARCH}
 MAKEFLAGS+=            LOWER_ARCH=${LOWER_ARCH:Q}
-LOWER_OPSYS_VERSUFFIX!=        echo ${LOWER_OS_VERSION} | ${CUT} -c -1
+LOWER_OPSYS_VERSUFFIX= ${LOWER_OS_VERSION:C/([0-9]*).*/\1/}
 LOWER_VENDOR?=         apple
 
 .elif ${OPSYS} == "DragonFly"
@@ -141,7 +141,7 @@
 MACHINE_ARCH=          ${LOWER_ARCH}
 .  endif
 MAKEFLAGS+=            LOWER_ARCH=${LOWER_ARCH:Q}
-LOWER_OPSYS_VERSUFFIX!=        echo ${LOWER_OS_VERSION} | ${CUT} -c -1
+LOWER_OPSYS_VERSUFFIX= ${LOWER_OS_VERSION:C/([0-9]*).*/\1/}
 .  if ${LOWER_ARCH} == "i386"
 LOWER_VENDOR?=         pc
 .  endif



Home | Main Index | Thread Index | Old Index