~ubuntu-branches/debian/sid/boost1.49/sid

« back to all changes in this revision

Viewing changes to tools/release/make_packages.sh

  • Committer: Package Import Robot
  • Author(s): Steve M. Robbins
  • Date: 2012-02-26 00:31:44 UTC
  • Revision ID: package-import@ubuntu.com-20120226003144-eaytp12cbf6ubpms
Tags: upstream-1.49.0
Import upstream version 1.49.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# Build branches/release packages
 
4
 
 
5
# � Copyright 2008 Beman Dawes
 
6
# Distributed under the Boost Software License, Version 1.0. See http://www.boost.org/LICENSE_1_0.txt
 
7
 
 
8
if [ $# -lt 1 ]
 
9
then
 
10
 echo "invoke:" $0 "package-name"
 
11
 echo "example:" $0 "boost_1_35_0_RC3"
 
12
 exit 1
 
13
fi
 
14
 
 
15
echo "preping posix..."
 
16
rm -r posix/bin.v2 2>/dev/null
 
17
rm -r posix/dist 2>/dev/null
 
18
mv posix $1
 
19
rm -f $1.tar.gz 2>/dev/null
 
20
rm -f $1.tar.bz2 2>/dev/null
 
21
echo "creating gz..."
 
22
tar cfz $1.tar.gz $1
 
23
echo "creating bz2..."
 
24
gunzip -c $1.tar.gz | bzip2 >$1.tar.bz2
 
25
echo "cleaning up..."
 
26
mv $1 posix
 
27
 
 
28
echo "preping windows..."
 
29
rm -r windows/bin.v2 2>/dev/null
 
30
rm -r windows/dist 2>/dev/null
 
31
mv windows $1
 
32
rm -f $1.zip 2>/dev/null
 
33
rm -f $1.7z 2>/dev/null
 
34
echo "creating zip..."
 
35
zip -r $1.zip $1
 
36
echo "creating 7z..."
 
37
7z a -r $1.7z $1
 
38
echo "cleaning up..."
 
39
mv $1 windows
 
40
 
 
41
echo "done automatic processing; you must now upload packages manually"
 
42
exit 0
 
43
 
 
44
 
 
45