2017-09-28 03:27:08 +03:00
|
|
|
:: Compile arvo as a pill noun, without compiler changes.
|
2019-01-18 08:37:34 +03:00
|
|
|
:: usage
|
2017-09-28 03:27:08 +03:00
|
|
|
::
|
|
|
|
:: .urbit/pill +solid
|
2015-06-18 04:08:47 +03:00
|
|
|
::
|
2016-02-11 03:41:28 +03:00
|
|
|
:::: /hoon/solid/gen
|
2015-06-18 04:08:47 +03:00
|
|
|
::
|
2016-02-17 04:40:32 +03:00
|
|
|
/? 310
|
2018-12-04 21:41:04 +03:00
|
|
|
/+ pill
|
2015-06-18 04:08:47 +03:00
|
|
|
::
|
|
|
|
::::
|
2017-09-28 03:27:08 +03:00
|
|
|
!:
|
2015-09-12 03:24:51 +03:00
|
|
|
:- %say
|
2018-11-21 00:58:20 +03:00
|
|
|
|= $: [now=@da eny=@uvJ bec=beak]
|
2021-09-16 00:49:44 +03:00
|
|
|
::
|
|
|
|
:: arg: desks to build pill from
|
|
|
|
::
|
|
|
|
:: list of desks. defaults to [%base]~.
|
|
|
|
:: the first desk in this list will become the pill's base desk.
|
|
|
|
:: optionally, the first desk may be replaced with a fully
|
|
|
|
:: qualified path to the new boot system (typically in sys).
|
|
|
|
:: the rest of the desks will be installed through kiln.
|
|
|
|
::
|
|
|
|
$= arg
|
|
|
|
$@ ~
|
|
|
|
$: base=$@(desk [@ta @ta @ta path])
|
|
|
|
rest=(list desk)
|
|
|
|
==
|
|
|
|
::
|
2018-11-28 06:46:50 +03:00
|
|
|
dub=_|
|
2021-12-16 18:43:00 +03:00
|
|
|
prime=_|
|
2015-06-18 04:08:47 +03:00
|
|
|
==
|
2022-03-17 19:03:10 +03:00
|
|
|
:- %pill
|
2021-07-26 08:26:49 +03:00
|
|
|
^- pill:pill
|
2018-11-21 00:58:20 +03:00
|
|
|
::
|
|
|
|
=/ sys=path
|
2021-09-16 00:49:44 +03:00
|
|
|
?: ?=([^ *] arg)
|
|
|
|
`path`base.arg
|
|
|
|
=/ =desk
|
|
|
|
?~ arg %base
|
|
|
|
?>(?=(@ base.arg) base.arg)
|
|
|
|
/(scot %p p.bec)/[desk]/(scot %da now)/sys
|
|
|
|
=/ dez=(list [desk path])
|
|
|
|
?~ arg ~
|
|
|
|
%+ turn rest.arg
|
|
|
|
|= =desk
|
|
|
|
[desk /(scot %p p.bec)/[desk]/(scot %da now)]
|
2018-11-21 00:58:20 +03:00
|
|
|
::
|
2021-12-16 18:43:00 +03:00
|
|
|
(solid:pill sys dez dub now prime)
|