Imported Upstream version 1.49.0
[platform/upstream/boost.git] / tools / release / build_release_packages.sh
1 #!/usr/bin/env bash
2
3 # Build release packages
4
5 # Copyright 2008 Beman Dawes
6 # Distributed under the Boost Software License, Version 1.0.
7 # See http://www.boost.org/LICENSE_1_0.txt
8
9 if [ $# -lt 1 ]
10 then
11  echo "invoke:" $0 "release-name"
12  echo "example:" $0 "boost_1_35_0_RC3"
13  exit 1
14 fi
15
16 echo "preping posix..."
17 rm -r posix/bin.v2 2>/dev/null
18 rm -r posix/dist 2>/dev/null
19 mv posix $1
20 rm -f $1.tar.gz 2>/dev/null
21 rm -f $1.tar.bz2 2>/dev/null
22 echo "creating gz..."
23 tar cfz $1.tar.gz $1
24 echo "creating bz2..."
25 gzip -c $1.tar.gz | bzip2 >$1.tar.bz2
26 echo "cleaning up..."
27 mv $1 posix
28
29 echo "preping windows..."
30 rm -r windows/bin.v2 2>/dev/null
31 rm -r windows/dist 2>/dev/null
32 mv windows $1
33 rm -f $1.zip 2>/dev/null
34 rm -f $1.7z 2>/dev/null
35 echo "creating zip..."
36 zip -r $1.zip $1
37 echo "creating 7z..."
38 7z a -r $1.7z $1
39 echo "cleaning up..."
40 mv $1 windows
41
42 exit 0
43