Skip to content

Commit

Permalink
Bump version to 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
HuguesDelorme committed Jul 9, 2020
1 parent 5567f90 commit 3be65fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
15 changes: 3 additions & 12 deletions scripts/bump-version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,8 @@
# ../version.pri
path_version_pri = "#{script_dir_name}/../version.pri"
version_pri = File.open(path_version_pri, "r").read
version_pri.sub!(/(VER_MAJ\s*=\s*)\d+/, "\\1#{major}")
version_pri.sub!(/(VER_MIN\s*=\s*)\d+/, "\\1#{minor}")
version_pri.sub!(/(VER_PAT\s*=\s*)\d+/, "\\1#{patch}")
version_pri.sub!(/(MAYO_VERSION_MAJ\s*=\s*)\d+/, "\\1#{major}")
version_pri.sub!(/(MAYO_VERSION_MIN\s*=\s*)\d+/, "\\1#{minor}")
version_pri.sub!(/(MAYO_VERSION_PAT\s*=\s*)\d+/, "\\1#{patch}")
File.open(path_version_pri, "w").write(version_pri)
puts "Bumped #{path_version_pri}"

# installer/setup.iss
path_setup_iss = "#{script_dir_name}/../installer/setup.iss"
setup_iss = File.open(path_setup_iss, "r").read
setup_iss.sub!(
/(define\s+VersionNumber\s+)".*"/,
"\\1\"#{version_str}\"")
File.open(path_setup_iss, "w").write(setup_iss)
puts "Bumped #{path_setup_iss}"
2 changes: 1 addition & 1 deletion version.pri
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defined(HAVE_GIT, var) {
}

MAYO_VERSION_MAJ = 0
MAYO_VERSION_MIN = 1
MAYO_VERSION_MIN = 2
MAYO_VERSION_PAT = 0
VERSION = $${MAYO_VERSION_MAJ}.$${MAYO_VERSION_MIN}.$${MAYO_VERSION_PAT}.$${MAYO_VERSION_REVNUM}
MAYO_VERSION = $${VERSION}-$$MAYO_VERSION_COMMIT
Expand Down

0 comments on commit 3be65fe

Please sign in to comment.