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