Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix compability with mawk patterns

  • Loading branch information...
commit b993d660a3a930bd06561077d4dcd86fc3bfcb17 1 parent 098ba25
@mpapis mpapis authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 core/internal/shell/version/stream/functions
View
6 core/internal/shell/version/stream/functions
@@ -17,17 +17,17 @@ __sm.version.stream.write.file()
# increase major version part, in case of any -rc relases just drop it
__sm.version.stream.increase.major()
{
- awk -F "[.-]" '$4 !~ "^[a-Z]" { print $1+1".0.0" } $4 ~ "^[a-Z]" { print $1"."$2"."$3;}'
+ awk -F "[.-]" '{ if ($4 ~ "^[a-zA-Z]") { print $1"."$2"."$3; } else { print $1+1".0.0"; } }'
}
# increase minor version part, in case of any -rc relases just drop it
__sm.version.stream.increase.minor()
{
- awk -F "[.-]" '$4 !~ "^[a-Z]" { print $1"."$2+1".0" } $4 ~ "^[a-Z]" { print $1"."$2"."$3;}'
+ awk -F "[.-]" '{ if ($4 ~ "^[a-zA-Z]") { print $1"."$2"."$3; } else { print $1"."$2+1".0";} }'
}
# increase tiny version part, in case of any -rc relases just drop it
__sm.version.stream.increase.tiny()
{
- awk -F "[.-]" '$4 !~ "^[a-Z]" { print $1"."$2"."$3+1 } $4 ~ "^[a-Z]" { print $1"."$2"."$3;}'
+ awk -F "[.-]" '{ if ($4 ~ "^[a-zA-Z]") { print $1"."$2"."$3; } else { print $1"."$2"."$3+1; } }'
}
Please sign in to comment.
Something went wrong with that request. Please try again.