@echo off if "%1" equ "/?" goto usage if "%1" equ "/help" goto usage if "%1" equ "help" goto usage if "%1" equ "-?" goto usage if "%1" equ "-h" goto usage if "%1" equ "--help" goto usage set pop_cd=%CD% if [%1] neq [] (set root=%1) else (set root=%CD%) mkdir "%root%" 2>NUL cd "%root%" echo Creating OAHBuild repository in %CD%\oahbuild call bzr init-repo --rich-root-pack oahbuild > NUL cd oahbuild echo - checking out trunk from lp:oah call bzr branch lp:oah -rtag:0.3 trunk || goto end :modules echo. echo Creating OAHBuild modules echo. cd "%root%" mkdir modules cd modules call :create_module glib || goto end call :create_module pixman || goto end call :create_module zlib || goto end call :create_module libxml2 || goto end call :create_module liboil || goto end call :create_module atk || goto end call :create_module cairo || goto end call :create_module pango || goto end call :create_module clutter clutter || goto end call :create_module clutter-cairo clutter || goto end call :create_module clutter-gtk clutter || goto end call :create_module clutter-gst clutter || goto end call :create_module gtk+ || goto end call :create_module gstreamer gstreamer || goto end call :create_module gst-plugins-base gstreamer || goto end call :create_module gst-plugins-good gstreamer || goto end call :create_module gst-plugins-bad gstreamer || goto end :end cd "%pop_cd%" set pop_cd= set root= goto:eof :create_module if [%2] equ [] (set mod=%1) else (set mod=%2\%1&& mkdir "%CD%\%2" 2>NUL) echo Creating %1 repository in %CD%\%mod% call bzr init-repo --rich-root-pack %mod% > NUL echo - checking out trunk from lp:oah/%1 call bzr branch lp:oah/%1 -rtag:OAH_0.3 %mod%\trunk goto:eof :usage @echo off echo %0 [root] echo. echo root root directory for all OAH build branches/modules. default = . (working dir)