-
Notifications
You must be signed in to change notification settings - Fork 11
/
devbuild.sh
executable file
·40 lines (31 loc) · 1.01 KB
/
devbuild.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
dmp_lift() {
local _rlist="${1#\$}" IFS="${2}" _IFS1="${3}";
eval set -- '${'"${_rlist}"'}'; IFS="${_IFS1}"; eval ${_rlist}='${*}';
};
devbuild_midipix() {
set -eu
DEV_PACKAGES=" \
musl_no_complex_host musl_full_host musl_full \
psxtypes pemagine dalist ldso ntcon ntapi \
psxscl psxscl_strace ntctty ntux ptycon toksvc u16ports \
ntctty_minipix ntux_minipix ptycon_minipix toksvc_minipix";
dmp_lift \$DEV_PACKAGES " " ",";
mb_project_dir=$(cd "$(dirname $0)" ; pwd)
cd "$mb_project_dir"
./build.sh -r "${DEV_PACKAGES}" "${@}";
./build.sh -D minipix "${@}";
};
devbuild_all() {
./build.sh -a nt64 -b release -D minipix,rpm,zipdist -p max -v "${@}" &&\
./build.sh -a nt64 -b debug -D minipix,rpm,zipdist -p max -v "${@}";
};
devbuild_mirror() {
./pkgtool.sh -m ~/public_html/archives -M ~/public_html/repos_git;
};
case "${1:-}" in
--all) shift; devbuild_all "${@}"; ;;
--mirror) shift; devbuild_mirror "${@}"; ;;
*) devbuild_midipix "${@}"; ;;
esac;
# vim:filetype=sh textwidth=0