diff options
author | wiz <wiz@pkgsrc.org> | 2002-07-13 11:27:29 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2002-07-13 11:27:29 +0000 |
commit | 421d4c19ab5760fc5b330828bcfc40094a182b0d (patch) | |
tree | c9ff65d4f39570030c14223954dc946d8b2078d8 /devel/cpuflags | |
parent | 71260cee0758ec90d17669e14393f3e617acf9bf (diff) | |
download | pkgsrc-421d4c19ab5760fc5b330828bcfc40094a182b0d.tar.gz |
Bump to 0.25: Use nawk instead of awk on Solaris. Closes pkg/17587.
Diffstat (limited to 'devel/cpuflags')
-rw-r--r-- | devel/cpuflags/Makefile | 4 | ||||
-rwxr-xr-x | devel/cpuflags/files/cpuflags.SunOS | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/devel/cpuflags/Makefile b/devel/cpuflags/Makefile index 40ef56aba79..337b7e8f27b 100644 --- a/devel/cpuflags/Makefile +++ b/devel/cpuflags/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.24 2002/06/27 20:49:02 abs Exp $ +# $NetBSD: Makefile,v 1.25 2002/07/13 11:27:29 wiz Exp $ # -DISTNAME= cpuflags-0.24 +DISTNAME= cpuflags-0.25 CATEGORIES= sysutils MASTER_SITES= # empty DISTFILES= # empty diff --git a/devel/cpuflags/files/cpuflags.SunOS b/devel/cpuflags/files/cpuflags.SunOS index cf2596957b8..fb159838af8 100755 --- a/devel/cpuflags/files/cpuflags.SunOS +++ b/devel/cpuflags/files/cpuflags.SunOS @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: cpuflags.SunOS,v 1.1 2002/06/21 11:35:16 abs Exp $ +# $NetBSD: cpuflags.SunOS,v 1.2 2002/07/13 11:27:29 wiz Exp $ arch=`/usr/bin/uname -m` @@ -16,8 +16,8 @@ fi # Fixup flags for old gcc if [ -n "$FLAGS" ]; then - gcc_ver=`gcc -v 2>&1 | awk '/gcc version/ {sub("egcs-","");print $3}'` - FLAGS=`awk -v "flags=$FLAGS" -v "gcc_ver=$gcc_ver" ' + gcc_ver=`gcc -v 2>&1 | nawk '/gcc version/ {sub("egcs-","");print $3}'` + FLAGS=`nawk -v "flags=$FLAGS" -v "gcc_ver=$gcc_ver" ' {if (gcc_ver < $1){map[$2] = ""$3}} END{if (flags in map) {print map[flags]}else {print flags}} ' <<EOD |