Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | set -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 |
|
---|
12 | scriptdir=`dirname $0`
|
---|
13 | scriptdir=`cd "${scriptdir}" && pwd`
|
---|
14 |
|
---|
15 | if test $# -lt 1; then
|
---|
16 | echo "Usage: mkplugindist.sh <build directory>"
|
---|
17 | exit 1
|
---|
18 | fi
|
---|
19 |
|
---|
20 | zipfile="${scriptdir}/xplra.zip"
|
---|
21 | builddir="${1}"
|
---|
22 |
|
---|
23 | tmpdir=`mktemp -d`
|
---|
24 | trap "rm -rf $tmpdir" EXIT
|
---|
25 |
|
---|
26 | xplradir="${tmpdir}/XPLRA"
|
---|
27 | mkdir -p "${xplradir}/32"
|
---|
28 | mkdir -p "${xplradir}/64"
|
---|
29 |
|
---|
30 | strip -g -o "${xplradir}/64/lin.xpl" "${builddir}/xpl/xplra/src/plugin/src/xplra/lin.xpl"
|
---|
31 | strip -g -o "${xplradir}/32/lin.xpl" "${builddir}/xpl-32/xplra/src/plugin/src/xplra/lin.xpl"
|
---|
32 | i686-w64-mingw32-strip -o "${xplradir}/32/win.xpl" "${builddir}/xpl-win32/xplra/src/plugin/src/xplra/win.xpl.exe"
|
---|
33 | x86_64-w64-mingw32-strip -o "${xplradir}/64/win.xpl" "${builddir}/xpl-win64/xplra/src/plugin/src/xplra/win.xpl.exe"
|
---|
34 |
|
---|
35 | cd "${tmpdir}"
|
---|
36 | rm -f "${zipfile}"
|
---|
37 | zip -r "${zipfile}" XPLRA
|
---|
Note:
See
TracBrowser
for help on using the repository browser.