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