Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

53 lines (40 sloc) 0.94 kb
@ECHO OFF
REM @echo 1st:%1 2nd:%2 3rd:%3 4th:%4
SET PWD=%cd%
SET APPNAME=%3
for %%* in (.) do set PARENTDIR=%%~n*
IF /I [%1] EQU [] CALL :all
IF /I "%1"=="all" CALL :all
IF /I "%1"=="boss" CALL :boss
IF /I "%1"=="clean" CALL :clean
IF /I "%1"=="get-deps" CALL :get-deps
IF /I "%1"=="deps" CALL :deps
IF /I "%1"=="test" CALL :test
IF /I "%1"=="app" IF /I "%2"=="project" IF [%3] NEQ [] CALL :app
:: End of main program
GOTO End
:all
CALL rebar.cmd get-deps
CALL rebar.cmd compile
GOTO :EOF
:boss
CALL rebar.cmd compile skip_deps=true
GOTO :EOF
:clean
CALL rebar.cmd clean
GOTO :EOF
:get-deps
CALL rebar.cmd get-deps
GOTO :EOF
:deps
CALL rebar.cmd compile
GOTO :EOF
:test
CALL rebar.cmd skip_deps=true eunit
GOTO :EOF
:: example how to invoke: windows-make.bat app PROJECT=awesomename
:app
CALL rebar.cmd create template=skel dest=../%APPNAME% src=../%PARENTDIR% appid=%APPNAME% skip_deps=true
GOTO :EOF
:End
:: End of batch file
Jump to Line
Something went wrong with that request. Please try again.