Skip to content

Commit

Permalink
- Remove old unused package.bat from the "old" days
Browse files Browse the repository at this point in the history
- Replace my little package script with a newer version:
 - Use svn instead of git-svn
 - directly compile things from the downloaded tag, don't import the
binaries
 - archive everything

git-svn-id: https://simulationcraft.googlecode.com/svn/trunk@14906 3b4652a1-8050-0410-ac47-3d40261b0f8b
  • Loading branch information
philoptik committed Dec 5, 2012
1 parent bfd225b commit 893d861
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 63 deletions.
19 changes: 0 additions & 19 deletions package.bat

This file was deleted.

65 changes: 65 additions & 0 deletions util_scripts/package.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@

REM Small SimC release script created by [email protected]
REM It sits in my /git folder, above the simulationcraft folder
REM After tagging for a release, I edit the variables 'version'
REM and 'rev' and execute it.

IF (%1) == () exit /b

set version=%1

REM REQUIRES: qmake, make, g++ in your PATH, as well as a archiver

set target_dir=simc-%version%
set build_dir=simc-%version%-build
set tag=release-%version%
set MAKE=mingw32-make
set QMAKE=qmake
set ARCHIVER=7z a


call svn checkout https://simulationcraft.googlecode.com/svn/tags/%tag% %target_dir%/source

REM copy things over to the temporary build dir, and build cli + gui there
xcopy /E /I /H %target_dir%\source %build_dir%
cd %build_dir%
cd engine
%MAKE% -j4
cd ..
%QMAKE% simcqt.pro
%MAKE% -j4 release
cd ..


del /F /Q /S %target_dir%\source\.svn
rd /Q /S %target_dir%\source\.svn\
xcopy /E /I /H %target_dir%\source\profiles %target_dir%\profiles
rd /Q /S %target_dir%\source\profiles\

xcopy /E /I /H %target_dir%\source\locale %target_dir%\locale
rd /Q /S %target_dir%\source\locale\

move %target_dir%\source\Examples.simc %target_dir%\
move %target_dir%\source\Legend.html %target_dir%\
move %target_dir%\source\READ_ME_FIRST.txt %target_dir%\
move %target_dir%\source\Welcome.html %target_dir%\
move %target_dir%\source\Welcome.png %target_dir%\
move %target_dir%\source\windows_env_path.vbs %target_dir%\


xcopy %target_dir%\source\mingw_qt_dll_setup.bat %target_dir%\
cd %target_dir%
call mingw_qt_dll_setup.bat
cd ..
del %target_dir%\mingw_qt_dll_setup.bat


xcopy %build_dir%\engine\simc.exe %target_dir%\
xcopy %build_dir%\release\SimulationCraft.exe %target_dir%\
xcopy Win32OpenSSL_Light-1_0_1c.exe %target_dir%\

REM remove tmp build dir
rd /Q /S %build_dir%


call %ARCHIVER% simc-%version%-win32.zip %target_dir%
44 changes: 0 additions & 44 deletions util_scripts/package_with_git_svn.bat

This file was deleted.

0 comments on commit 893d861

Please sign in to comment.