Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 1366757, Automate the NSPR version requirement when creating NSS …
…release archives, r=franziskus

DONTBUILD
  • Loading branch information
kaie committed May 23, 2017
1 parent f9c8cf7 commit d117a36
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
10 changes: 10 additions & 0 deletions automation/release/nspr-version.txt
@@ -0,0 +1,10 @@
4.15

# The first line of this file must contain the human readable NSPR
# version number, which is the minimum required version of NSPR
# that is supported by this version of NSS.
#
# This information is used by release automation,
# when creating an NSS source archive.
#
# All other lines in this file are ignored.
8 changes: 5 additions & 3 deletions automation/release/nss-release-helper.py
Expand Up @@ -171,11 +171,13 @@ def set_4_digit_release_number():
set_all_lib_versions(version, major, minor, patch, build)

def create_nss_release_archive():
ensure_arguments_after_action(4, "nss_release_version nss_hg_release_tag nspr_release_version path_to_stage_directory")
ensure_arguments_after_action(3, "nss_release_version nss_hg_release_tag path_to_stage_directory")
nssrel = args[1].strip() #e.g. 3.19.3
nssreltag = args[2].strip() #e.g. NSS_3_19_3_RTM
nsprrel = args[3].strip() #e.g. 4.10.8
stagedir = args[4].strip() #e.g. ../stage
stagedir = args[3].strip() #e.g. ../stage

with open('automation/release/nspr-version.txt') as nspr_version_file:
nsprrel = next(nspr_version_file).strip()

nspr_tar = "nspr-" + nsprrel + ".tar.gz"
nsprtar_with_path= stagedir + "/v" + nsprrel + "/src/" + nspr_tar
Expand Down

0 comments on commit d117a36

Please sign in to comment.