source: xplra/mkplugindist.sh@ 67:1f08d2ceff1a

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

Added automatic build scripts

  • Property exe set to *
File size: 1.0 KB
Line 
1#!/bin/bash
2
3set -e -u
4
5# Script to create the plugin distribution from an already built set of sources.
6#
7# Usage: mkplugindist.sh <build directory>
8#
9# <build directory> is the directory containing the build directories as
10# created by buildallhosts.sh.
11
12scriptdir=`dirname $0`
13scriptdir=`cd "${scriptdir}" && pwd`
14
15if test $# -lt 1; then
16 echo "Usage: mkplugindist.sh <build directory>"
17 exit 1
18fi
19
20zipfile="${scriptdir}/xplra.zip"
21builddir="${1}"
22
23tmpdir=`mktemp -d`
24trap "rm -rf $tmpdir" EXIT
25
26xplradir="${tmpdir}/XPLRA"
27mkdir -p "${xplradir}/32"
28mkdir -p "${xplradir}/64"
29
30strip -g -o "${xplradir}/64/lin.xpl" "${builddir}/xpl/xplra/src/plugin/src/xplra/lin.xpl"
31strip -g -o "${xplradir}/32/lin.xpl" "${builddir}/xpl-32/xplra/src/plugin/src/xplra/lin.xpl"
32i686-w64-mingw32-strip -o "${xplradir}/32/win.xpl" "${builddir}/xpl-win32/xplra/src/plugin/src/xplra/win.xpl.exe"
33x86_64-w64-mingw32-strip -o "${xplradir}/64/win.xpl" "${builddir}/xpl-win64/xplra/src/plugin/src/xplra/win.xpl.exe"
34
35cd "${tmpdir}"
36rm -f "${zipfile}"
37zip -r "${zipfile}" XPLRA
Note: See TracBrowser for help on using the repository browser.