diff --git a/buildVersion.py b/buildVersion.py index b15cdd402153c9162ab2b34674b38d5870c89cba..bdee3cf3950b729e428dcd664043f54b4fe644c7 100755 --- a/buildVersion.py +++ b/buildVersion.py @@ -42,6 +42,7 @@ import urllib # constants APP = os.path.basename(os.getcwd()) +BUILDDIR = '../plugin_dbui_build' CHANGELOG = 'static/plugin_dbui/CHANGELOG' DBUI_W2P = 'web2py.plugin.dbui.%s.w2p' EXTJSSRC = 'static/plugin_extjs/src' @@ -148,7 +149,7 @@ def compile(): print 'Remove javascript library', el # debug version of the javascript library - print 'Debug version of the javascript library', JSLIBDEBUG + print '\nDebug version of the javascript library', JSLIBDEBUG cwd = os.getcwd() @@ -160,7 +161,7 @@ def compile(): subprocess.call(cmd) # Minified version of the javascript library - print 'Minified version of the javascript library', JSLIBMIN + print '\nMinified version of the javascript library', JSLIBMIN cmd = ["sencha", "-sdk", os.path.join(cwd, EXTJSSRC), "compile", "-class", os.path.join(cwd, JSLIBSRC), @@ -296,7 +297,7 @@ def web2py(): """Produce the binary file for the web2py plugin. """ - print 'Build the web2py plugin binary file' + print '\nBuild the web2py plugin binary file' rep = raw_input('Check that the web2py service is running ? Type CR to continue.') if rep: print '\n\tSkip this step.\n' @@ -309,7 +310,15 @@ def web2py(): fi = open(fn, 'wb') fi.write(s) fi.close() - print 'Binary file', fn, 'is created.' + + # move the file to the build directory + fn_build = os.path.join(BUILDDIR, fn) + if os.path.exists(fn_build): + os.remove(fn_build) + + os.rename(fn, fn_build) + + print 'Binary file', fn, 'is created in ', BUILDDIR def yuicompressor(): diff --git a/static/plugin_dbui/TODO b/static/plugin_dbui/TODO index 924140ac38861772daba1e72207a846e768427be..bdc0d256f8515092c010911d144fe46f59c8eebb 100644 --- a/static/plugin_dbui/TODO +++ b/static/plugin_dbui/TODO @@ -23,6 +23,7 @@ - Take benefit of Ext JS 4.2 to use the filter mechanism available in grid and store. Remove out custo code. +0.6.1.0 (Mar 2014) - Take benefit of Ext JS 4.2 to deploy the dynamic loading when running in debug mode.