diff options
author | joerg <joerg@pkgsrc.org> | 2007-07-30 14:10:36 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-07-30 14:10:36 +0000 |
commit | 2b3b6c11aba04e5a58f0f8b3d6c24e94078e8bc3 (patch) | |
tree | 3d014a21966a5901bbb5549ae294b8fb006979f1 | |
parent | a13b98431e92acf9f5324d61f4e921ae62fe8df4 (diff) | |
download | pkgsrc-2b3b6c11aba04e5a58f0f8b3d6c24e94078e8bc3.tar.gz |
Compute OS_VERSION on AIX directly using make substitution instead of
forking a shell and sed.
-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 |