Merge: installer stuff wip
authortimothy.murphy@nokia.com
Wed, 20 Jan 2010 18:28:33 +0000
branchwip
changeset 153 df63379a03bd
parent 152 4afe202ba8fa (current diff)
parent 143 a00bdef52597 (diff)
child 154 608cc482dea8
child 316 e8791bf8cc82
child 317 adc615fe34e8
Merge: installer stuff
--- a/sbsv2/raptor/util/install-windows/raptorinstallermaker.py	Wed Jan 20 18:22:44 2010 +0000
+++ b/sbsv2/raptor/util/install-windows/raptorinstallermaker.py	Wed Jan 20 18:28:33 2010 +0000
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+# Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
 # All rights reserved.
 # This component and the accompanying materials are made available
 # under the terms of the License "Eclipse Public License v1.0"
@@ -33,7 +33,7 @@
 parser.add_option("-s", "--sbs-home", dest="sbshome",
                   help="Path to use as SBS_HOME environment variable. If not present the script exits.")
 parser.add_option("-w", "--win32-support", dest="win32support",
-                  help="Path to use as SBS_HOME environment variable. If not present the script exits.")
+                  help="Path to Win32 support directory. If not present the script exits.")
 
 (options, args) = parser.parse_args()
 
@@ -46,10 +46,10 @@
 	sys.exit(2)
 else:
 	# Required irectories inside the win32-support repository
-	win32supportdirs = ["bv", "cygwin", "mingw", "python252"]
+	win32supportdirs = ["bv", "cygwin", "mingw", "python264"]
 	for dir in win32supportdirs:
 		if not os.path.isdir(os.path.join(options.win32support, dir)):
-			print "ERROR: directory %s does not exist. Cannot build installer. Exiting..."
+			print "ERROR: directory %s does not exist. Cannot build installer. Exiting..." % dir
 			sys.exit(2)
 
 def parseconfig(xmlFile="raptorinstallermaker.xml"):
@@ -57,7 +57,7 @@
 
 def generateinstallerversionheader(sbshome = None):
 	shellenv = os.environ.copy()
-	shellenv["PYTHONPATH"] = os.path.join(os.environ["SBS_HOME"], "python")
+	shellenv["PYTHONPATH"] = os.path.join(sbshome, "python")
 	
 	raptorversioncommand = "python -c \"import raptor_version; print raptor_version.numericversion()\""
 	
--- a/sbsv2/raptor/util/install-windows/raptorinstallerscript.nsi	Wed Jan 20 18:22:44 2010 +0000
+++ b/sbsv2/raptor/util/install-windows/raptorinstallerscript.nsi	Wed Jan 20 18:28:33 2010 +0000
@@ -1,4 +1,4 @@
-# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+# Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
 # All rights reserved.
 # This component and the accompanying materials are made available
 # under the terms of the License "Eclipse Public License v1.0"
@@ -120,8 +120,8 @@
     File /r /x distribution.policy.s60 /x .hg ${WIN32SUPPORT}\cygwin\*.*
     SetOutPath "$INSTDIR\win32\mingw"
     File /r /x distribution.policy.s60 /x .hg ${WIN32SUPPORT}\mingw\*.*
-    SetOutPath "$INSTDIR\win32\python252"
-    File /r /x distribution.policy.s60 /x .hg ${WIN32SUPPORT}\python252\*.*
+    SetOutPath "$INSTDIR\win32\python264"
+    File /r /x distribution.policy.s60 /x .hg ${WIN32SUPPORT}\python264\*.*
     
     SetOutPath "$INSTDIR"
     File ${RAPTOR_LOCATION}\RELEASE-NOTES.txt