forked from volution/z-scratchpad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerate.z-run
77 lines (41 loc) · 4.11 KB
/
generate.z-run
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/dev/null
<<== _ / generate
test "${#}" -eq 0
readarray -t -- _mains < <( exec -- "${ZRUN}" ':: deploy / list / main' )
for _main in "${_mains[@]}" ; do
printf -- ':: watch / run / %s :: exec -- "${ZRUN}" ":: watch / run / exec / *" %q "${@}"\n' "${_main}" "${_main}"
printf -- ':: watch / go / build / %s / debug :: exec -- "${ZRUN}" ":: watch / go / build / * / debug" %q "${@}"\n' "${_main}" "${_main}"
printf -- ':: watch / go / execute / %s / debug :: exec -- "${ZRUN}" ":: watch / go / execute / * / debug" %q "${@}"\n' "${_main}" "${_main}"
printf -- '++:: run / %s :: exec -- "${ZRUN}" ":: run / exec / *" %q "${@}"\n' "${_main}" "${_main}"
printf -- '++:: go / execute / %s / debug :: exec -- "${ZRUN}" ":: go / execute / * / debug" %q "${@}"\n' "${_main}" "${_main}"
printf -- ':: go / execute / %s / release :: exec -- "${ZRUN}" ":: go / execute / * / release" %q "${@}"\n' "${_main}" "${_main}"
printf -- '++:: go / build / %s / debug :: exec -- "${ZRUN}" ":: go / build / * / debug" %q "${@}"\n' "${_main}" "${_main}"
printf -- ':: go / build / %s / release :: exec -- "${ZRUN}" ":: go / build / * / release" %q "${@}"\n' "${_main}" "${_main}"
printf -- ':: go / build / %s / debug / all :: exec -- "${ZRUN}" ":: go / build / * / debug / all" %q "${@}"\n' "${_main}" "${_main}"
printf -- ':: go / build / %s / release / all :: exec -- "${ZRUN}" ":: go / build / * / release / all" %q "${@}"\n' "${_main}" "${_main}"
printf -- ':: go / build / %s / debug / native :: exec -- "${ZRUN}" ":: go / build / * / debug / native" %q "${@}"\n' "${_main}" "${_main}"
printf -- ':: go / build / %s / release / native :: exec -- "${ZRUN}" ":: go / build / * / release / native" %q "${@}"\n' "${_main}" "${_main}"
for _os in linux darwin freebsd openbsd android ; do
printf -- ':: go / build / %s / debug / %s / x86_64 :: exec -- "${ZRUN}" ":: go / build / * / debug / %q / x86_64" %q "${@}"\n' "${_main}" "${_os}" "${_os}" "${_main}"
printf -- ':: go / build / %s / release / %s / x86_64 :: exec -- "${ZRUN}" ":: go / build / * / release / %q / x86_64" %q "${@}"\n' "${_main}" "${_os}" "${_os}" "${_main}"
done
for _os in linux darwin freebsd openbsd android ; do
printf -- ':: go / build / %s / debug / %s / aarch64 :: exec -- "${ZRUN}" ":: go / build / * / debug / %q / aarch64" %q "${@}"\n' "${_main}" "${_os}" "${_os}" "${_main}"
printf -- ':: go / build / %s / release / %s / aarch64 :: exec -- "${ZRUN}" ":: go / build / * / release / %q / aarch64" %q "${@}"\n' "${_main}" "${_os}" "${_os}" "${_main}"
done
for _os in linux ; do
printf -- ':: go / build / %s / debug / %s / armv6 :: exec -- "${ZRUN}" ":: go / build / * / debug / %q / armv6" %q "${@}"\n' "${_main}" "${_os}" "${_os}" "${_main}"
printf -- ':: go / build / %s / release / %s / armv6 :: exec -- "${ZRUN}" ":: go / build / * / release / %q / armv6" %q "${@}"\n' "${_main}" "${_os}" "${_os}" "${_main}"
done
if test -e "./documentation/manual/${_main}.1.ronn" ; then
printf -- ':: watch / documentation / manual / render / %s :: exec -- "${ZRUN}" ":: watch / documentation / manual / render / *" %q "${@}"\n' "${_main}.1" "${_main}.1"
printf -- ':: documentation / manual / render / %s :: exec -- "${ZRUN}" ":: documentation / manual / render / *" %q "${@}"\n' "${_main}.1" "${_main}.1"
printf -- ':: documentation / manual / render / %s / forced :: exec -- "${ZRUN}" ":: documentation / manual / render / * / forced" %q "${@}"\n' "${_main}.1" "${_main}.1"
printf -- ':: documentation / manual / open / %s / man :: exec -- "${ZRUN}" ":: documentation / manual / open / * / man" %q "${@}"\n' "${_main}.1" "${_main}.1"
printf -- ':: documentation / manual / open / %s / text :: exec -- "${ZRUN}" ":: documentation / manual / open / * / text" %q "${@}"\n' "${_main}.1" "${_main}.1"
for _browser in firefox chromium webview links ; do
printf -- ':: documentation / manual / open / %s / html / %s :: exec -- "${ZRUN}" ":: documentation / manual / open / * / html / %q" %q "${@}"\n' "${_main}.1" "${_browser}" "${_browser}" "${_main}.1"
done
fi
done
!!