source: xplra/mkalldist.sh@ 118:6a4f9cc20432

tip
Last change on this file since 118:6a4f9cc20432 was 118:6a4f9cc20432, checked in by István Váradi <ivaradi@…>, 17 months ago

Updated the distribution scripts

  • Property exe set to *
File size: 973 bytes
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-win64" win64.zip "${destdir}"
37
38cd "${scriptdir}"
39python3 setup.py sdist --formats zip -d "${destdir}"
Note: See TracBrowser for help on using the repository browser.