forked from TykTechnologies/tyk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e4c96e0
commit 15840c0
Showing
4 changed files
with
44 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
CURRENTVERS=$(perl -n -e'/v(\d+).(\d+).(\d+).(\d+)/'' && print "v$1\.$2\.$3\.$4"' version.go) | ||
|
||
echo "Current version is: " $CURRENTVERS | ||
|
||
echo -n "Major version [ENTER]: " | ||
read maj | ||
echo -n "Minor version [ENTER]: " | ||
read min | ||
echo -n "Patch version [ENTER]: " | ||
read patch | ||
echo -n "Release version [ENTER]: " | ||
read rel | ||
|
||
NEWVERSION="v$maj.$min.$patch.$rel" | ||
echo "Setting new version in source: " $NEWVERSION | ||
|
||
perl -pi -e 's/var VERSION string = \"(.*)\"/var VERSION string = \"'$NEWVERSION'\"/g' version.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
package main | ||
|
||
var MAJOR int = 1 | ||
var MINOR int = 8 | ||
var PATCH int = 3 | ||
var RELEASE int = 2 | ||
var SUFFIX string = "" | ||
var VERSION string = "v1.8.3.3" |