diff options
author | joerg <joerg> | 2007-07-30 14:10:36 +0000 |
---|---|---|
committer | joerg <joerg> | 2007-07-30 14:10:36 +0000 |
commit | 39970f357b8c9a78a7d64e241ef848eed81ac22b (patch) | |
tree | 3d014a21966a5901bbb5549ae294b8fb006979f1 /mk/bsd.prefs.mk | |
parent | a9a70a8cd49fcb8e1e098613b14dd47e0950a160 (diff) | |
download | pkgsrc-39970f357b8c9a78a7d64e241ef848eed81ac22b.tar.gz |
Compute OS_VERSION on AIX directly using make substitution instead of
forking a shell and sed.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r-- | mk/bsd.prefs.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index 319d8d23563..727c0c4ade3 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -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 @@ _OS_VERSION!= /usr/bin/oslevel . 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 |