version_0.39_maint
Rev | Line | |
---|
[916] | 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 | echo "winemakeinst.bat" | wine cmd
|
---|
| 21 |
|
---|
| 22 | echo
|
---|
| 23 | echo "Copying the 'dist' directory..."
|
---|
| 24 | destdistdir="../dist/dist-${version}"
|
---|
| 25 |
|
---|
| 26 | rm -rf "${destdistdir}"
|
---|
| 27 | cp -a dist "${destdistdir}"
|
---|
| 28 | chown -R ${uid}:${gid} "${destdistdir}"
|
---|
| 29 |
|
---|
| 30 | echo
|
---|
| 31 | echo "Copying the setup program..."
|
---|
| 32 |
|
---|
| 33 | cp "MAVA Logger X-${version}-Setup.exe" ../dist
|
---|
| 34 | chown ${uid}:${gid} "../dist/MAVA Logger X-${version}-Setup.exe"
|
---|
| 35 |
|
---|
| 36 | echo
|
---|
| 37 | echo "Done."
|
---|
Note:
See
TracBrowser
for help on using the repository browser.