script to build allinone with modified script update sources bzr_set.py : ::beginning :: Disabled/Enable echoing @echo off
:: Set some script wide variable set POSTGRESQL_MSI=postgresql-8.3-int.msi set OPENERP_NSIS=setup.nsi set OPENERP_DEMO_DIR=demo :: Get current date (YYYYMMDD) set TODAY=%DATE:~6,4%%DATE:~3,2%%DATE:~0,2% :: Save current directory set TOPDIR=%CD% :: Set correct a subdirectory for packaging, :: dont trash the current directory... set SUBDIR=%1 if "%1"=="" goto usage if "%2"=="" goto usage set VERSION=%2 goto create_subdir :usage echo "make.bat TITLE_OF_BUILD VERSION" goto end :: Prepare sub-directory :create_subdir echo Creating subdir %SUBDIR%. mkdir %SUBDIR% echo. echo Copying PostgreSQL installer... copy /Y %POSTGRESQL_MSI% %SUBDIR% echo. echo Copying OpenERP Nullsoft installer script... copy /Y %OPENERP_NSIS% %SUBDIR% echo. echo Copying `demo' files... mkdir %SUBDIR%\demo xcopy /E /I /Y %OPENERP_DEMO_DIR% %SUBDIR%\demo cd %SUBDIR% :: Get sources from launchpad, do operations that I wrote before python c:\openerp\trunk\bzr_set.py ::copy addons in server xcopy /E /Y addons\* server\bin\addons\ :: Do some clean-up, rmdir /S /Q client-web\win32\build rmdir /S /Q client-web\build rmdir /S /Q server\win32\build rmdir /S /Q server\build rmdir /S /Q server\win32\dist rmdir /S /Q server\dist rmdir /S /Q client\build rmdir /S /Q client\dist del /F client\msgfmt.pyc del /F client\mydistutils.pyc del /F C:\openerp\trunk\client-web\win32\util.pyc :packaging :: package client for allinone echo. echo beginning client build cd client python setup.py --quiet py2exe makensis /DVERSION=%VERSION% /DALLINONE=1 /V1 setup.nsi echo. echo client build :: package server for allinone echo. echo beginning server build cd .. cd server\win32 python setup.py --quiet py2exe cd .. python setup.py --quiet py2exe makensis /DVERSION=%VERSION% /DALLINONE=1 /V1 setup.nsi echo. echo server build :: package client-web for allinone echo. echo beginning client web build cd .. cd client-web python win32\setup.py --quiet bdist_wininst move win32\openerp-web-setup-* win32\openerp-web-setup-%VERSION%.exe makensis /DVERSION=%VERSION% /DALLINONE=1 /V1 win32\setup.nsi move win32\openerp-web-setup-%VERSION%.exe . echo. echo client-web build :: package all-in-one echo. echo beginning allinone build cd .. makensis /DVERSION=%VERSION% /V1 setup.nsi echo. echo all in one build echo. ::check uncheck if you want to keep or delete individual package :del /F client-web\openerp-web-* .\ :del /F client\openerp-client-* .\ :del /F server\openerp-server-* .\ :end :: Do some clean-up, :: return to TOPDIR, and unset script environment vars :cleanup cd %TOPDIR% set POSTGRESQL_MSI= set OPENERP_NSIS= set OPENERP_DEMO_DIR= set TODAY= set TOPDIR= set SUBDIR= pause ::end of script -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=43674#43674 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users
