summaryrefslogtreecommitdiff
path: root/tools/release/build_release_packages.sh
blob: 2a126c01c0a00831d9f17ddd2d9d1b8a60c60917 (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
#!/usr/bin/env bash

# Build release packages

# Copyright 2008 Beman Dawes
# Distributed under the Boost Software License, Version 1.0.
# See http://www.boost.org/LICENSE_1_0.txt

if [ $# -lt 1 ]
then
 echo "invoke:" $0 "release-name"
 echo "example:" $0 "boost_1_35_0_RC3"
 exit 1
fi

echo "preping posix..."
rm -r posix/bin.v2 2>/dev/null
rm -r posix/dist 2>/dev/null
mv posix $1
rm -f $1.tar.gz 2>/dev/null
rm -f $1.tar.bz2 2>/dev/null
echo "creating gz..."
tar cfz $1.tar.gz $1
echo "creating bz2..."
gzip -c $1.tar.gz | bzip2 >$1.tar.bz2
echo "cleaning up..."
mv $1 posix

echo "preping windows..."
rm -r windows/bin.v2 2>/dev/null
rm -r windows/dist 2>/dev/null
mv windows $1
rm -f $1.zip 2>/dev/null
rm -f $1.7z 2>/dev/null
echo "creating zip..."
zip -r $1.zip $1
echo "creating 7z..."
7z a -r $1.7z $1
echo "cleaning up..."
mv $1 windows

exit 0