diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-10-25 09:18:01 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-10-25 09:19:24 +0300 |
commit | 44e64dcd37b4073879e85d99bb8dac43e2138476 (patch) | |
tree | ec92e04ad20a6482a97c4c6769fcecdd9bbf5f4b /tools | |
parent | 631eb838249a7676ebd167e01623b34383e3e7d7 (diff) |
Windows package generation improvement and readme typo fix
Change-Id: I81e4fbac98dece98198be318b2bb919a23c3f96d
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/generate_package_win.cmd | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/generate_package_win.cmd b/tools/generate_package_win.cmd index 2a1895b7..a1046f6b 100644 --- a/tools/generate_package_win.cmd +++ b/tools/generate_package_win.cmd @@ -14,7 +14,7 @@ if "%1"=="" ( ) if "%2"=="" ( - set DATAVIS_BRANCH=master + set DATAVIS_BRANCH=origin/master ) else ( set DATAVIS_BRANCH=%2 ) @@ -30,6 +30,7 @@ set DATAVIS_FINAL_ZIP=..\qtdatavisualization_%DATAVIS_VERSION%.zip echo Exporting %DATAVIS_BRANCH% to %DATAVIS_TEMP_ZIP_FULL%... rmdir /q /s %DATAVIS_TEMP_DIR_FULL% 2> NUL md %DATAVIS_TEMP_DIR_FULL% 2> NUL +call git fetch call git archive --format zip --output ../%DATAVIS_TEMP_DIR%/%DATAVIS_TEMP_ZIP% %DATAVIS_BRANCH% echo Unzipping %DATAVIS_TEMP_ZIP_FULL% to %DATAVIS_PACKAGE_UNZIP_DIR% and %DATAVIS_BUILD_DIR%... @@ -37,6 +38,11 @@ md %DATAVIS_PACKAGE_UNZIP_DIR% 2> NUL md %DATAVIS_BUILD_DIR% 2> NUL call 7z x -y -o%DATAVIS_PACKAGE_UNZIP_DIR% %DATAVIS_TEMP_ZIP_FULL% > NUL call 7z x -y -o%DATAVIS_BUILD_DIR% %DATAVIS_TEMP_ZIP_FULL% > NUL +::Workaround for git archive bug +rmdir /q /s %DATAVIS_PACKAGE_UNZIP_DIR%\tests 2> NUL +rmdir /q /s %DATAVIS_PACKAGE_UNZIP_DIR%\tools 2> NUL +rmdir /q /s %DATAVIS_BUILD_DIR%\tests 2> NUL +rmdir /q /s %DATAVIS_BUILD_DIR%\tools 2> NUL echo Generating includes, mkspecs, and docs in %DATAVIS_BUILD_DIR%... pushd %DATAVIS_BUILD_DIR% |