summaryrefslogtreecommitdiff
path: root/tools/release/build_release_packages.bat
blob: 5f72e5157c397d230b2bf1707bb8da02fe8800c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@echo off
rem  Build release packages

rem  Copyright Beman Dawes 2009

rem  Distributed under the Boost Software License, Version 1.0.
rem  See http://www.boost.org/LICENSE_1_0.txt

echo Build release packages...

if not %1$==$ goto ok
echo Usage: build_release_packages release-name
echo Example: build_release_packages boost_1_38_0_Beta1
goto done

:ok

echo Preping posix...
rmdir /s /q posix\bin.v2 2>nul
rmdir /s /q posix\dist 2>nul
ren posix %1
del %1.tar.gz 2>nul
del %1.tar.bz2 2>nul
echo Creating gz...
tar cfz %1.tar.gz %1
echo Creating bz2...
gzip -d -c %1.tar.gz | bzip2 >%1.tar.bz2
echo Cleaning up posix...
ren %1 posix

echo Preping windows...
rmdir /s /q windows\bin.v2 2>nul
rmdir /s /q windows\dist 2>nul
ren windows %1
del %1.zip 2>nul
del %1.7z 2>nul
echo Creating zip...
zip -r -q %1.zip %1
echo Creating 7z...
7z a -r -bd %1.7z %1
echo Cleaning up windows...
ren %1 windows

grep "Revision:" snapshot.log
echo Build release packages complete

:done