Navigation Menu

Skip to content

Commit

Permalink
Add @rambocoder's windows script-fu to the new make app process.
Browse files Browse the repository at this point in the history
  • Loading branch information
cstar committed Jul 11, 2013
1 parent ce34977 commit 1d2843a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions skel/start-server.bat
@@ -1,3 +1,5 @@
@ECHO OFF
CALL rebar.cmd get-deps
CALL rebar.cmd compile
FOR /F "tokens=*" %%i in ('"rebar.cmd boss c=start_dev_cmd ^| findstr werl"') do set myvar=%%i
START "Erlang Window" %myvar%
7 changes: 7 additions & 0 deletions windows-make.bat
Expand Up @@ -46,6 +46,13 @@ 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
mkdir ..\%APPNAME%\deps\
:: copy ChicagoBoss into deps\boss of the new app
xcopy ..\%PARENTDIR%\*.* ..\%APPNAME%\deps\boss\ /E /H /R /Y
:: move boss deps folders into app deps folder
SET src_folder=..\%APPNAME%\deps\boss\deps
SET tar_folder=..\%APPNAME%\deps
for /f %%a IN ('dir "%src_folder%" /b') do move %src_folder%\%%a %tar_folder%
GOTO :EOF

:End
Expand Down

0 comments on commit 1d2843a

Please sign in to comment.