Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | set -e -u
|
---|
4 |
|
---|
5 | # Script to create all the various distribution files into a given directory.
|
---|
6 | #
|
---|
7 | # Usage: mkccclientdist.sh <build config file> <destination directory>
|
---|
8 |
|
---|
9 | scriptdir=`dirname $0`
|
---|
10 | scriptdir=`cd "${scriptdir}" && pwd`
|
---|
11 |
|
---|
12 | if test $# -lt 2; then
|
---|
13 | echo "Usage: mkalldist.sh <build config file> <destination directory>"
|
---|
14 | exit 1
|
---|
15 | fi
|
---|
16 |
|
---|
17 | buildconfig="${1}"
|
---|
18 | destdir="${2}"
|
---|
19 |
|
---|
20 | tmpdir=`mktemp -d`
|
---|
21 | trap "rm -rf $tmpdir" EXIT
|
---|
22 |
|
---|
23 | rm -rf "${destdir}"
|
---|
24 | mkdir -p "${destdir}"
|
---|
25 |
|
---|
26 | "${scriptdir}/buildallhosts.sh" "${buildconfig}" "${tmpdir}"
|
---|
27 |
|
---|
28 | for package in vscpl xplcommon xplra; do
|
---|
29 | make -C "${tmpdir}/xpl/${package}" dist
|
---|
30 | mv "${tmpdir}/xpl/${package}/"*.tar.gz "${destdir}"
|
---|
31 | done
|
---|
32 |
|
---|
33 | "${scriptdir}/mkplugindist.sh" "${tmpdir}" "${destdir}"
|
---|
34 |
|
---|
35 | "${scriptdir}/mkccclientdist.sh" "${tmpdir}/xpl" linux-x86_64.tar.gz "${destdir}"
|
---|
36 | "${scriptdir}/mkccclientdist.sh" "${tmpdir}/xpl-32" linux-i686.tar.gz "${destdir}"
|
---|
37 | "${scriptdir}/mkccclientdist.sh" "${tmpdir}/xpl-win32" win32.zip "${destdir}"
|
---|
38 | "${scriptdir}/mkccclientdist.sh" "${tmpdir}/xpl-win64" win64.zip "${destdir}"
|
---|
39 |
|
---|
40 | cd "${scriptdir}"
|
---|
41 | python setup.py sdist --formats zip -d "${destdir}"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.