source: docker/context/build.sh@ 938:f26db2a00d8a

version_0.39_maint
Last change on this file since 938:f26db2a00d8a was 916:4f738ffc3596, checked in by István Váradi <ivaradi@…>, 6 years ago

Support for building for Windows using Wine

  • Property exe set to *
File size: 651 bytes
Line 
1#!/bin/bash
2
3set -e -u
4
5scriptdir=$(cd $(dirname $0) && pwd)
6
7sdistname="${1}"
8uid="${2}"
9gid="${3}"
10
11mlxdirname=$(basename "${sdistname}" .tar.gz)
12version=$(echo "${mlxdirname}" | sed "s:mlx-::")
13
14cd "${scriptdir}"
15
16tar xf "dist/${sdistname}"
17
18cd "${mlxdirname}"
19
20echo "winemakeinst.bat" | wine cmd
21
22echo
23echo "Copying the 'dist' directory..."
24destdistdir="../dist/dist-${version}"
25
26rm -rf "${destdistdir}"
27cp -a dist "${destdistdir}"
28chown -R ${uid}:${gid} "${destdistdir}"
29
30echo
31echo "Copying the setup program..."
32
33cp "MAVA Logger X-${version}-Setup.exe" ../dist
34chown ${uid}:${gid} "../dist/MAVA Logger X-${version}-Setup.exe"
35
36echo
37echo "Done."
Note: See TracBrowser for help on using the repository browser.