2020-12-07 05:35:24 +03:00
|
|
|
:: Produce an ivory pill
|
|
|
|
::
|
|
|
|
:::: /hoon/ivory/gen
|
|
|
|
::
|
|
|
|
/? 310
|
|
|
|
/+ pill
|
|
|
|
::
|
|
|
|
::::
|
|
|
|
!:
|
2017-03-22 03:56:51 +03:00
|
|
|
:- %say
|
2020-11-19 10:44:28 +03:00
|
|
|
|= $: [now=@da eny=@uvJ bec=beak]
|
|
|
|
arg=$@(~ [top=path ~])
|
|
|
|
~
|
|
|
|
==
|
2020-12-07 05:35:24 +03:00
|
|
|
:- %noun
|
|
|
|
^- pill:pill
|
2018-11-28 21:35:08 +03:00
|
|
|
=/ sys=path
|
2020-11-19 10:44:28 +03:00
|
|
|
?^ arg top.arg
|
2018-11-28 21:35:08 +03:00
|
|
|
/(scot %p p.bec)/[q.bec]/(scot %da now)/sys
|
2020-12-05 06:54:16 +03:00
|
|
|
=/ lib
|
|
|
|
(welp (flop (tail (flop sys))) /lib)
|
|
|
|
::
|
|
|
|
|^ =/ ver
|
|
|
|
=/ sub *(trap vase)
|
|
|
|
=. sub (build-sys sub %hoon)
|
|
|
|
=. sub (build-sys sub %arvo)
|
|
|
|
=. sub (build-sys sub %lull)
|
|
|
|
=. sub (build-sys sub %zuse)
|
2020-12-08 02:36:19 +03:00
|
|
|
=. sub (build-lib sub & %ethereum)
|
|
|
|
=. sub (build-lib sub & %azimuth)
|
|
|
|
(build-lib sub | %vere)
|
2020-12-05 06:54:16 +03:00
|
|
|
=/ nok !.
|
|
|
|
=> *[ver=(trap vase) ~]
|
|
|
|
!= q:$:ver
|
2020-12-07 05:35:24 +03:00
|
|
|
ivory/[nok ver ~]
|
2020-12-05 06:54:16 +03:00
|
|
|
::
|
|
|
|
++ build-sys
|
|
|
|
|= [sub=(trap vase) nam=term] ^- (trap vase)
|
|
|
|
~> %slog.[0 leaf+"ivory: building /sys/{(trip nam)}"]
|
|
|
|
(swat sub (rain /sys/[nam]/hoon .^(@t cx+(welp sys /[nam]/hoon))))
|
|
|
|
::
|
|
|
|
++ build-lib
|
2020-12-08 02:36:19 +03:00
|
|
|
|= [sub=(trap vase) imp=? nam=term] ^- (trap vase)
|
2020-12-05 06:54:16 +03:00
|
|
|
~> %slog.[0 leaf+"ivory: building /lib/{(trip nam)}"]
|
2020-12-08 02:36:19 +03:00
|
|
|
=/ hun=hoon
|
|
|
|
%+ mist /lib/[nam]/hoon
|
|
|
|
.^(@t cx+(welp lib /[nam]/hoon))
|
|
|
|
?. imp (swat sub hun)
|
|
|
|
(swel sub [%ktts nam hun])
|
|
|
|
:: +mist: +rain but skipping past ford runes
|
|
|
|
::
|
|
|
|
++ mist
|
|
|
|
|= [bon=path txt=@]
|
|
|
|
^- hoon
|
|
|
|
=+ vas=vast
|
|
|
|
~| bon
|
|
|
|
%+ scan (trip txt)
|
|
|
|
%- full
|
|
|
|
=; fud
|
|
|
|
(ifix [;~(plug gay fud) gay] tall:vas(wer bon))
|
|
|
|
%- star
|
|
|
|
;~ pose vul
|
|
|
|
%+ ifix [fas (just `@`10)]
|
|
|
|
(star ;~(less (just `@`10) next))
|
|
|
|
==
|
|
|
|
:: +swel: +swat but with +slop
|
|
|
|
::
|
|
|
|
++ swel
|
|
|
|
|= [tap=(trap vase) gen=hoon]
|
|
|
|
^- (trap vase)
|
|
|
|
=/ gun (~(mint ut p:$:tap) %noun gen)
|
|
|
|
|. ~+
|
2020-12-08 05:09:08 +03:00
|
|
|
=/ pro q:$:tap
|
|
|
|
[[%cell p.gun p:$:tap] [.*(pro q.gun) pro]]
|
2020-12-05 06:54:16 +03:00
|
|
|
--
|