From e03d1cb8dda2321fdd7cc13096f18210973d34d2 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Fri, 22 Feb 2008 21:10:19 +0000 Subject: [PATCH] BuildScript: Default to build into distrib-subfolder instead of outside of the tree folder. --- Tools/Scripts/create_release.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Tools/Scripts/create_release.py b/Tools/Scripts/create_release.py index 0366c215f..6856d464b 100644 --- a/Tools/Scripts/create_release.py +++ b/Tools/Scripts/create_release.py @@ -54,7 +54,7 @@ vs_path = 'C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Common7\\IDE' # VS IDE executable - set this to command starting Visual Studio IDE vs_bin = 'devenv.com' # Relative path where to create a release folder -dist_root_folder = '/WinMerge/Releases' +dist_root_folder = 'distrib' # END CONFIGURATION - you don't need to edit anything below... @@ -355,6 +355,16 @@ def main(argv): print 'Tools/Scripts -folder (where this script is located).' sys.exit() + # Create the distribution folder if it doesn't exist + try: + if not os.path.exists(dist_root_folder): + os.mkdir(dist_root_folder) + except EnvironmentError, einst: + print 'Error creating distribution folder: ' + dist_root_folder + print einst + sys.exit() + + # Remove old build's files if cleanup_build() == False: sys.exit() -- 2.11.0