diff options
author | Tor Lillqvist <tlillqvist@novell.com> | 2011-07-03 15:26:24 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@novell.com> | 2011-07-03 15:29:52 +0300 |
commit | 72cd238dccdfc67abb8aee8810b7a7d6dd0d3c58 (patch) | |
tree | a0f65b3b89a6430ba947c668909040bf7e6715dd /solenv/bin | |
parent | 4d2c8f34712bd49127adb53a442546ac1a60617a (diff) |
Use \r instead of \x0d in awk pattern for portability
Hex escapes in the regexps are not supported in Solaris nawk, for
instance. \r should match a CR in all cases as far as I know.
Diffstat (limited to 'solenv/bin')
-rw-r--r-- | solenv/bin/getcompver.awk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/solenv/bin/getcompver.awk b/solenv/bin/getcompver.awk index 068960481130..124e915b72c9 100644 --- a/solenv/bin/getcompver.awk +++ b/solenv/bin/getcompver.awk @@ -52,13 +52,13 @@ BEGIN { x = match( $0, /[0-9]*\.[0-9]*\.[0-9]*/ ) CCversion = substr( $0, RSTART, RLENGTH) } -/^[0-9]*[.][0-9]*\x0d*$/ { +/^[0-9]*[.][0-9]*\r*$/ { if ( compiler_matched == 0 ) { # need to blow to x.xx.xx for comparing CCversion = $0 ".0" } } -/^[0-9]*[.][0-9]*[.][0-9]*\x0d*$/ { +/^[0-9]*[.][0-9]*[.][0-9]*\r*$/ { if ( compiler_matched == 0 ) { CCversion = $0 } |