|
Lucio Andrés Illanes Albornoz (arab, vxp) |
92254a |
#
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
92254a |
# . ./build.vars and set -o errexit are assumed.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
92254a |
#
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
92254a |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
92254a |
if ! is_build_script_done install; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
92254a |
IFS=""; cat <<EOF > ${PREFIX}/midipix.sh;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
92254a |
#!/bin/sh
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
92254a |
MIDIPIX_DRIVE=\${1:-z};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
92254a |
MIDIPIX_DNAME="\${2:-}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
92254a |
MIDIPIX_PATH="/\${MIDIPIX_DRIVE}\${MIDIPIX_DNAME:+/\${MIDIPIX_DNAME}}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
92254a |
mintty -h always -e /bin/sh -c "
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
92254a |
set -o errexit; stty raw -echo;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
92254a |
mount --change-cygdrive-prefix /;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
92254a |
cd \"\${MIDIPIX_PATH}/native/bin\";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
92254a |
export PATH=\"\${MIDIPIX_PATH}/native/bin:\${MIDIPIX_PATH}/native/lib\";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
92254a |
./ntctty.exe -e chroot /native /bin/bash";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
92254a |
EOF
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
92254a |
chmod +x ${PREFIX}/midipix.sh;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
92254a |
set_build_script_done install finish;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
92254a |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
92254a |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
92254a |
# vim:filetype=sh
|