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() {
992784
	./build.sh -a nt64 -b release -D minipix,rpm,zipdist -p max -v "${@}" &&\
992784
	./build.sh -a nt64 -b debug -D minipix,rpm,zipdist -p max -v "${@}";
Lucio Andrés Illanes Albornoz 746a9f
};
Lucio Andrés Illanes Albornoz 746a9f
e937c9
devbuild_mirror() {
e937c9
	./pkgtool.sh -m ~/public_html/archives -M ~/public_html/repos_git;
e937c9
};
e937c9
Lucio Andrés Illanes Albornoz 746a9f
case "${1:-}" in
e937c9
--all)		shift; devbuild_all "${@}"; ;;
e937c9
--mirror)	shift; devbuild_mirror "${@}"; ;;
e937c9
*)		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