diff options
| -rw-r--r-- | indra/llcommon/llversionserver.h | 2 | ||||
| -rw-r--r-- | indra/llcommon/llversionviewer.h | 2 | ||||
| -rw-r--r-- | indra/newview/English.lproj/InfoPlist.strings | 4 | ||||
| -rw-r--r-- | indra/newview/Info-SecondLife.plist | 2 | ||||
| -rw-r--r-- | indra/newview/res/viewerRes.rc | 8 | ||||
| -rwxr-xr-x | indra/newview/viewer_manifest.py | 11 | ||||
| -rwxr-xr-x | scripts/update_version_files.py | 18 | 
7 files changed, 34 insertions, 13 deletions
| diff --git a/indra/llcommon/llversionserver.h b/indra/llcommon/llversionserver.h index 23e39ceb08..e9e21cffb6 100644 --- a/indra/llcommon/llversionserver.h +++ b/indra/llcommon/llversionserver.h @@ -36,7 +36,7 @@  const S32 LL_VERSION_MAJOR = 1;  const S32 LL_VERSION_MINOR = 29;  const S32 LL_VERSION_PATCH = 0; -const S32 LL_VERSION_BUILD = 0; +const S32 LL_VERSION_BUILD = 2425;  const char * const LL_CHANNEL = "Second Life Server"; diff --git a/indra/llcommon/llversionviewer.h b/indra/llcommon/llversionviewer.h index 45810a101d..04cf98ce19 100644 --- a/indra/llcommon/llversionviewer.h +++ b/indra/llcommon/llversionviewer.h @@ -36,7 +36,7 @@  const S32 LL_VERSION_MAJOR = 2;  const S32 LL_VERSION_MINOR = 0;  const S32 LL_VERSION_PATCH = 0; -const S32 LL_VERSION_BUILD = 0; +const S32 LL_VERSION_BUILD = 2425;  const char * const LL_CHANNEL = "Second Life 2009"; diff --git a/indra/newview/English.lproj/InfoPlist.strings b/indra/newview/English.lproj/InfoPlist.strings index 735424c647..28853ba032 100644 --- a/indra/newview/English.lproj/InfoPlist.strings +++ b/indra/newview/English.lproj/InfoPlist.strings @@ -2,6 +2,6 @@  CFBundleName = "Second Life"; -CFBundleShortVersionString = "Second Life version 2.0.0.0"; -CFBundleGetInfoString = "Second Life version 2.0.0.0, Copyright 2004-2009 Linden Research, Inc."; +CFBundleShortVersionString = "Second Life version 2.0.0.2425"; +CFBundleGetInfoString = "Second Life version 2.0.0.2425, Copyright 2004-2009 Linden Research, Inc."; diff --git a/indra/newview/Info-SecondLife.plist b/indra/newview/Info-SecondLife.plist index 7264044d37..c0a33feaec 100644 --- a/indra/newview/Info-SecondLife.plist +++ b/indra/newview/Info-SecondLife.plist @@ -32,7 +32,7 @@  		</dict>  	</array>  	<key>CFBundleVersion</key> -	<string>2.0.0.0</string> +	<string>2.0.0.2425</string>  	<key>CSResourcesFileMapped</key>  	<true/>  </dict> diff --git a/indra/newview/res/viewerRes.rc b/indra/newview/res/viewerRes.rc index 87a8bd5787..a5ee78df2c 100644 --- a/indra/newview/res/viewerRes.rc +++ b/indra/newview/res/viewerRes.rc @@ -138,8 +138,8 @@ TOOLMEDIAOPEN           CURSOR                  "toolmediaopen.cur"  //  VS_VERSION_INFO VERSIONINFO - FILEVERSION 2,0,0,0 - PRODUCTVERSION 2,0,0,0 + FILEVERSION 2,0,0,2425 + PRODUCTVERSION 2,0,0,2425   FILEFLAGSMASK 0x3fL  #ifdef _DEBUG   FILEFLAGS 0x1L @@ -156,12 +156,12 @@ BEGIN          BEGIN              VALUE "CompanyName", "Linden Lab"              VALUE "FileDescription", "Second Life" -            VALUE "FileVersion", "2.0.0.0" +            VALUE "FileVersion", "2.0.0.2425"              VALUE "InternalName", "Second Life"              VALUE "LegalCopyright", "Copyright © 2001-2008, Linden Research, Inc."              VALUE "OriginalFilename", "SecondLife.exe"              VALUE "ProductName", "Second Life" -            VALUE "ProductVersion", "2.0.0.0" +            VALUE "ProductVersion", "2.0.0.2425"          END      END      BLOCK "VarFileInfo" diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py index ae3b1ba43e..99c9abfddf 100755 --- a/indra/newview/viewer_manifest.py +++ b/indra/newview/viewer_manifest.py @@ -395,9 +395,16 @@ class WindowsManifest(ViewerManifest):          self.run_command('"' + proper_windows_path(NSIS_path) + '" ' + self.dst_path_of(tempfile))          # self.remove(self.dst_path_of(tempfile))          # If we're on a build machine, sign the code using our Authenticode certificate. JC -        sign_py = 'C:\\buildscripts\\code-signing\\sign.py' +        sign_py = os.path.expandvars("${SIGN}") +        if not sign_py or sign_py == "${SIGN}": +            sign_py = 'C:\\buildscripts\\code-signing\\sign.py' +        else: +            sign_py = sign_py.replace('\\', '\\\\') +        python = os.path.expandvars("${PYTHON}") +        if not python or python == "${PYTHON}": +            python = 'python'          if os.path.exists(sign_py): -            self.run_command(sign_py + ' ' + self.dst_path_of(installer_file)) +            self.run_command("%s %s %s" % (python, sign_py, self.dst_path_of(installer_file).replace('\\', '\\\\')))          else:              print "Skipping code signing,", sign_py, "does not exist"          self.created_path(self.dst_path_of(installer_file)) diff --git a/scripts/update_version_files.py b/scripts/update_version_files.py index 9081941521..977b66253a 100755 --- a/scripts/update_version_files.py +++ b/scripts/update_version_files.py @@ -37,6 +37,8 @@ add_indra_lib_path()  import getopt, os, re, commands  from indra.util import llversion +hg = os.path.expandvars("${HG}") +if not hg or hg == "${HG}": hg = "hg"  svn = os.path.expandvars("${SVN}")  if not svn or svn == "${SVN}": svn = "svn" @@ -152,6 +154,8 @@ re_map['indra/newview/English.lproj/InfoPlist.strings'] = \  version_re      = re.compile('(\d+).(\d+).(\d+).(\d+)')  svn_branch_re   = re.compile('^URL:\s+\S+/([^/\s]+)$', re.MULTILINE)  svn_revision_re = re.compile('^Last Changed Rev: (\d+)$', re.MULTILINE) +hg_branch_re    = re.compile('^.*_([^_\s]*)\s*$', re.MULTILINE) +hg_revision_re  = re.compile('^changeset:\s+(\d+):', re.MULTILINE)  def main():      script_path = os.path.dirname(__file__) @@ -244,14 +248,24 @@ def main():          # Assume we're updating just the build number          cl = '%s info "%s"' % (svn, src_root)          status, output = _getstatusoutput(cl) +        branch_match = None +        revision_match = None +        if status == 0: +            branch_match = svn_branch_re.search(output) +            revision_match = svn_revision_re.search(output) +        else: +            cl = '%s log --limit 1' % hg +            status, output = _getstatusoutput(cl) +            if status == 0: +                branch_match = hg_branch_re.search(os.path.expandvars("${PARABUILD_BUILD_NAME}")) +                revision_match = hg_revision_re.search(output) +          if verbose:              print              print "svn info output:"              print "----------------"              print output -        branch_match = svn_branch_re.search(output) -        revision_match = svn_revision_re.search(output)          if not branch_match or not revision_match:              print "Failed to execute svn info, output follows:"              print output | 
