Blame devbuild.sh

5e2b13
#!/bin/sh
5e2b13
Lucio Andrés Illanes Albornoz 00331b
dmp_lift() {
Lucio Andrés Illanes Albornoz 00331b
	local _rlist="${1#\$}" IFS="${2}" _IFS1="${3}";
Lucio Andrés Illanes Albornoz 00331b
	eval set -- '${'"${_rlist}"'}'; IFS="${_IFS1}"; eval ${_rlist}='${*}';
Lucio Andrés Illanes Albornoz 00331b
};
Lucio Andrés Illanes Albornoz 00331b
Lucio Andrés Illanes Albornoz 746a9f
devbuild_midipix() {
Lucio Andrés Illanes Albornoz 746a9f
	set -eu
5e2b13
Lucio Andrés Illanes Albornoz 00331b
	DEV_PACKAGES="							\
Lucio Andrés Illanes Albornoz 00331b
	musl_no_complex_host musl_full_host musl_full 			\
Lucio Andrés Illanes Albornoz 00331b
	psxtypes pemagine dalist ldso ntcon ntapi 			\
Lucio Andrés Illanes Albornoz 00331b
	psxscl psxscl_strace ntctty ntux ptycon toksvc u16ports 	\
Lucio Andrés Illanes Albornoz 00331b
	ntctty_minipix ntux_minipix ptycon_minipix toksvc_minipix";
Lucio Andrés Illanes Albornoz 00331b
	dmp_lift \$DEV_PACKAGES " 	" ",";
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 00331b
	./build.sh -r "${DEV_PACKAGES}" "${@}";
Lucio Andrés Illanes Albornoz 00331b
	./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 a09243
	./build.sh -a nt64 -b release -D minipix,rpm,zipdist -F ipv4 -p "${1:-auto}" -vv &&\
Lucio Andrés Illanes Albornoz a09243
	./build.sh -a nt64 -b debug -D minipix,rpm,zipdist -F ipv4 -p "${1:-auto}" -vv;
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 00331b
--all)	shift; devbuild_all "${@}"; ;;
Lucio Andrés Illanes Albornoz 00331b
*)	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