5e2b13
#!/bin/sh
5e2b13
Lucio Andrés Illanes Albornoz 746a9f
devbuild_midipix() {
Lucio Andrés Illanes Albornoz 746a9f
	set -eu
5e2b13
Lucio Andrés Illanes Albornoz 746a9f
	DEV_PACKAGES=\
Lucio Andrés Illanes Albornoz 746a9f
	musl_no_complex_host,musl_full_host,musl_full,\
Lucio Andrés Illanes Albornoz 746a9f
	psxtypes,pemagine,dalist,ldso,ntcon,ntapi,\
Lucio Andrés Illanes Albornoz 746a9f
	psxscl,psxscl_strace,ntctty,ntux,ptycon,toksvc,u16ports,\
Lucio Andrés Illanes Albornoz 746a9f
	ntctty_minipix,ntux_minipix,ptycon_minipix,toksvc_minipix
5e2b13
Lucio Andrés Illanes Albornoz 746a9f
	mb_project_dir=$(cd "$(dirname $0)" ; pwd)
Lucio Andrés Illanes Albornoz 746a9f
	cd "$mb_project_dir"
5e2b13
Lucio Andrés Illanes Albornoz 746a9f
	./build.sh -r ${DEV_PACKAGES}
Lucio Andrés Illanes Albornoz 746a9f
	./build.sh -D minipix
Lucio Andrés Illanes Albornoz 746a9f
};
Lucio Andrés Illanes Albornoz 746a9f
Lucio Andrés Illanes Albornoz 746a9f
devbuild_all() {
Lucio Andrés Illanes Albornoz 746a9f
	./build.sh -a nt64 -b release -D minipix,rpm,zipdist -F ipv4 -p 6 -v && ./build.sh -a nt64 -b debug -D minipix,rpm,zipdist -F ipv4 -p 6 -v;
Lucio Andrés Illanes Albornoz 746a9f
};
Lucio Andrés Illanes Albornoz 746a9f
Lucio Andrés Illanes Albornoz 746a9f
case "${1:-}" in
Lucio Andrés Illanes Albornoz 746a9f
--all)	devbuild_all; ;;
Lucio Andrés Illanes Albornoz 746a9f
*)	devbuild_midipix; ;;
Lucio Andrés Illanes Albornoz 746a9f
esac;
Lucio Andrés Illanes Albornoz 746a9f
Lucio Andrés Illanes Albornoz 746a9f
# vim:filetype=sh textwidth=0