Skip to content

Commit

Permalink
some fixes to release batch
Browse files Browse the repository at this point in the history
  • Loading branch information
Niall Ryan authored and Niall Ryan committed Aug 11, 2010
1 parent 61928d9 commit 8041be4
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions Cpp/release.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,27 @@

if "%1" == "" goto Help

md Release
md Release\%1
rmdir /s /q temp_release
del "%1.zip"

robocopy Source "Release\%1\Source" *.h *.cpp *.cc *.proto *.sln *.vcxproj *.vcxproj.filters /s
robocopy Lib "Release\%1\Lib" *.lib *.pdb /s
md temp_release
md temp_release\%1

pushd Release
robocopy Source "temp_release\%1\Source" *.h *.cpp *.cc *.proto *.sln *.vcxproj *.vcxproj.filters /s
robocopy Lib "temp_release\%1\Lib" *.lib *.pdb /s

pushd temp_release
7z a "%1.zip" "%1\"
popd

copy "temp_release\%1.zip" .
rmdir /s /q temp_release

goto End

:Help

echo. Takes one parameter, the name of the release, e.g.
echo. release.bat protobuf-remote-1.0
echo. release.bat protobuf-remote-cpp-1.0

:End

0 comments on commit 8041be4

Please sign in to comment.