summaryrefslogtreecommitdiffhomepage
path: root/399.midipix_sh.build
blob: 4aa41da741c3016ff2eb061a211b53a8d927a304 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# . ./build.vars and set -o errexit are assumed.
#

if ! is_build_script_done install; then
	IFS=""; cat <<EOF > ${PREFIX}/midipix.sh;
#!/bin/sh
MIDIPIX_DRIVE=\${1:-z};
MIDIPIX_DNAME="\${2:-}";
MIDIPIX_PATH="/\${MIDIPIX_DRIVE}\${MIDIPIX_DNAME:+/\${MIDIPIX_DNAME}}";
mintty -h always -e /bin/sh -c "
	set -o errexit; stty raw -echo;
	mount --change-cygdrive-prefix /;
	cd \"\${MIDIPIX_PATH}/native/bin\";
	export PATH=\"\${MIDIPIX_PATH}/native/bin:\${MIDIPIX_PATH}/native/lib\";
	./ntctty.exe -e chroot /native /bin/bash";
EOF
	chmod +x ${PREFIX}/midipix.sh;
	set_build_script_done install finish;
fi;

# vim:filetype=sh