source: xplra/mkplugindist.sh@ 94:c252844cf31d

Last change on this file since 94:c252844cf31d 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.2 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> [<destination 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> [<destination directory>]"
17 exit 1
18fi
19
20destdir="${2:-}"
21if test -z "${destdir}"; then
22 destdir=`pwd`
23fi
24
25zipfile="${destdir}/xplra.zip"
26builddir="${1}"
27
28tmpdir=`mktemp -d`
29trap "rm -rf $tmpdir" EXIT
30
31xplradir="${tmpdir}/XPLRA"
32mkdir -p "${xplradir}/32"
33mkdir -p "${xplradir}/64"
34
35strip -g -o "${xplradir}/64/lin.xpl" "${builddir}/xpl/xplra/src/plugin/src/xplra/lin.xpl"
36strip -g -o "${xplradir}/32/lin.xpl" "${builddir}/xpl-32/xplra/src/plugin/src/xplra/lin.xpl"
37i686-w64-mingw32-strip -o "${xplradir}/32/win.xpl" "${builddir}/xpl-win32/xplra/src/plugin/src/xplra/win.xpl.exe"
38x86_64-w64-mingw32-strip -o "${xplradir}/64/win.xpl" "${builddir}/xpl-win64/xplra/src/plugin/src/xplra/win.xpl.exe"
39
40cd "${tmpdir}"
41rm -f "${zipfile}"
42zip -r "${zipfile}" XPLRA
Note: See TracBrowser for help on using the repository browser.