Skip to content

Commit

Permalink
Merge pull request #401 from Microsoft/master
Browse files Browse the repository at this point in the history
merging latest changes from master to branch-1.6
  • Loading branch information
skaarthik committed Apr 21, 2016
2 parents 2a8aa56 + 6da4fe4 commit afdf9a5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
scala/dependency-reduced-pom.xml
build/runtime/
build/tools/
build/examples/
*.log
lib/

Expand Down
30 changes: 28 additions & 2 deletions build/Build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,32 @@ popd
pushd "%CMDHOME%\..\examples"
call Clean.cmd
call Build.cmd

set EXAMPLES_HOME=%CMDHOME%\examples
@echo set EXAMPLES_HOME=%EXAMPLES_HOME%

if EXIST "%EXAMPLES_HOME%" (
@echo Delete existing %EXAMPLES_HOME% ...
rd /s /q "%EXAMPLES_HOME%"
)
if NOT EXIST "%EXAMPLES_HOME%" mkdir "%EXAMPLES_HOME%"

set CURRDIR=%cd%
for /f "delims=" %%D in ('dir /b /s bin') do call :copyexamples %%D
goto :copyscripts

:copyexamples
set EXAMPLES_SRC=%1
set EXAMPLES_TARGET=%1
call set EXAMPLES_TARGET=%%EXAMPLES_TARGET:%CURRDIR%=%EXAMPLES_HOME%%%
set EXAMPLES_TARGET=%EXAMPLES_TARGET:~0,-3%

@echo mkdir %EXAMPLES_TARGET%
if NOT EXIST "%EXAMPLES_TARGET%" mkdir "%EXAMPLES_TARGET%"
copy /y "%EXAMPLES_SRC%\Release\*" "%EXAMPLES_TARGET%"
goto :eof

:copyscripts
popd

@echo Assemble SparkCLR script components
Expand All @@ -150,8 +176,8 @@ if not defined ProjectVersion (
set SPARKCLR_NAME=spark-clr_2.10-%ProjectVersion%

@rem Create the zip file
@echo 7z a .\target\%SPARKCLR_NAME%.zip runtime localmode ..\examples
7z a .\target\%SPARKCLR_NAME%.zip runtime localmode ..\examples
@echo 7z a .\target\%SPARKCLR_NAME%.zip runtime localmode examples
7z a .\target\%SPARKCLR_NAME%.zip runtime localmode examples

:distdone
popd

0 comments on commit afdf9a5

Please sign in to comment.