source: xplra/buildallhosts.sh@ 98:496e56f242ea

Last change on this file since 98:496e56f242ea was 62:466bd91afa55, checked in by István Váradi <ivaradi@…>, 12 years ago

Added automatic build scripts

  • Property exe set to *
File size: 877 bytes
RevLine 
[62]1#!/bin/bash
2
3set -e -u
4
5# Script to build all components needed for the X-Plane Remote Access plugin
6# for all supported hosts.
7#
8# Usage: buildallhosts.sh <configuration file> <destination directory> [<C/C++ flags>]
9#
10# The C/C++ flags default to -O2
11
12scriptdir=`dirname $0`
13
14if test $# -lt 2; then
15 echo "Usage: buildallhosts.sh <configuration file> <destination directory> [<C/C++ flags>]"
16 exit 1
17fi
18
19config="${1}"
20dest="${2}"
21cflags="${3:-}"
22if test -z "${cflags}"; then
23 cflags="-O2"
24fi
25
26"${scriptdir}/buildall.sh" "${config}" "${dest}/xpl" x86_64-linux-gnu "${cflags}"
27echo
28echo
29"${scriptdir}/buildall.sh" "${config}" "${dest}/xpl-32" i686-linux-gnu "${cflags}"
30echo
31echo
32"${scriptdir}/buildall.sh" "${config}" "${dest}/xpl-win32" i686-w64-mingw32 "${cflags}"
33echo
34echo
35"${scriptdir}/buildall.sh" "${config}" "${dest}/xpl-win64" x86_64-w64-mingw32 "${cflags}"
Note: See TracBrowser for help on using the repository browser.