source: xplra/mkalldist.sh@ 113:14139defbd04

Last change on this file since 113:14139defbd04 was 79:e35e539c5c9c, checked in by István Váradi <ivaradi@…>, 12 years ago

Added script to create all distributable files

  • Property exe set to *
File size: 1.1 KB
Line 
1#!/bin/bash
2
3set -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
9scriptdir=`dirname $0`
10scriptdir=`cd "${scriptdir}" && pwd`
11
12if test $# -lt 2; then
13 echo "Usage: mkalldist.sh <build config file> <destination directory>"
14 exit 1
15fi
16
17buildconfig="${1}"
18destdir="${2}"
19
20tmpdir=`mktemp -d`
21trap "rm -rf $tmpdir" EXIT
22
23rm -rf "${destdir}"
24mkdir -p "${destdir}"
25
26"${scriptdir}/buildallhosts.sh" "${buildconfig}" "${tmpdir}"
27
28for package in vscpl xplcommon xplra; do
29 make -C "${tmpdir}/xpl/${package}" dist
30 mv "${tmpdir}/xpl/${package}/"*.tar.gz "${destdir}"
31done
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
40cd "${scriptdir}"
41python setup.py sdist --formats zip -d "${destdir}"
Note: See TracBrowser for help on using the repository browser.