Skip to content

Commit

Permalink
don't require DLR enlistment, and clean deploy dir too
Browse files Browse the repository at this point in the history
  • Loading branch information
jschementi committed May 12, 2010
1 parent c02d0a2 commit c232197
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
3 changes: 2 additions & 1 deletion clean.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@echo off
call %~dp0python.bat %~dp0clean.py -python
call %~dp0python.bat %~dp0clean.py -ruby
call %~dp0python.bat %~dp0clean.py -ruby
call %~dp0ruby.bat %~dp0deploy.rb -clean
2 changes: 1 addition & 1 deletion config.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@echo off

REM set your merlin root here
REM set your dlr root here
set DLR_ROOT=d:\dlr1\dlr
7 changes: 6 additions & 1 deletion deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,10 @@ def deploy
end

if __FILE__ == $0
Deploy.new.deploy
d = Deploy.new
if ARGV.include?('-clean')
d.clean
else
d.deploy
end
end
6 changes: 5 additions & 1 deletion python.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@echo off
call %~dp0config.bat
%dlr_root%\External.LCA_RESTRICTED\Languages\CPython\26\python.exe %*
if exist C:\Python26\python.exe (
C:\Python26\python.exe %*
) else (
%dlr_root%\External.LCA_RESTRICTED\Languages\CPython\26\python.exe %*
)
6 changes: 5 additions & 1 deletion ruby.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@echo off
call %~dp0config.bat
%dlr_root%\External.LCA_RESTRICTED\Languages\Ruby\ruby-1.8.6p368\bin\ruby.exe %*
if exist C:\Ruby\bin\ruby.exe (
C:\Ruby\bin\ruby.exe %*
) else (
%dlr_root%\External.LCA_RESTRICTED\Languages\Ruby\ruby-1.8.6p368\bin\ruby.exe %*
)

0 comments on commit c232197

Please sign in to comment.