mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-18 20:31:40 +03:00
lib/gen: update pill lib/gens not to use whitelist
This commit is contained in:
parent
596fea8c2a
commit
877a00baf8
@ -25,6 +25,7 @@
|
||||
==
|
||||
::
|
||||
prime=_|
|
||||
exc=(list spur)
|
||||
==
|
||||
:- %pill
|
||||
^- pill:pill
|
||||
@ -45,4 +46,4 @@
|
||||
|= =desk
|
||||
[desk /(scot %p p.bec)/[desk]/(scot %da now)]
|
||||
::
|
||||
(brass:pill sys dez prime)
|
||||
(brass:pill sys dez prime exc)
|
||||
|
@ -29,6 +29,7 @@
|
||||
::
|
||||
dub=_|
|
||||
prime=_|
|
||||
exc=(list spur)
|
||||
==
|
||||
:- %pill
|
||||
^- pill:pill
|
||||
@ -46,4 +47,4 @@
|
||||
|= =desk
|
||||
[desk /(scot %p p.bec)/[desk]/(scot %da now)]
|
||||
::
|
||||
(solid:pill sys dez dub now prime)
|
||||
(solid:pill sys dez dub now prime exc)
|
||||
|
@ -37,20 +37,14 @@
|
||||
:: bas: full path to / directory
|
||||
::
|
||||
++ file-ovum
|
||||
=/ directories=(list path)
|
||||
:~ /app :: %gall applications
|
||||
/gen :: :dojo generators
|
||||
/lib :: libraries
|
||||
/mar :: mark definitions
|
||||
/sur :: structures
|
||||
/sys :: system files
|
||||
/ted :: :spider strands
|
||||
/web :: %eyre web content
|
||||
/desk :: desk manifest
|
||||
==
|
||||
|= [des=desk bas=path]
|
||||
|= [des=desk bas=path exc=(list spur)]
|
||||
^- unix-event
|
||||
%. directories
|
||||
=/ dirs
|
||||
?~ exc ~(tap in dir:.^(arch %cy bas))
|
||||
%+ skim
|
||||
~(tap in dir:.^(arch %cy bas))
|
||||
|=(=spur =(~ (find ~[spur] exc)))
|
||||
%. dirs
|
||||
|= :: sal: all spurs to load from
|
||||
::
|
||||
sal=(list spur)
|
||||
@ -99,7 +93,7 @@
|
||||
::
|
||||
:: +file-ovum2: electric boogaloo
|
||||
::
|
||||
++ file-ovum2 |=(p=path `unix-event`[//arvo what/(user-files p)])
|
||||
++ file-ovum2 |=(z=[path (list spur)] `unix-event`[//arvo what/(user-files z)])
|
||||
::
|
||||
++ prep-ovum
|
||||
|= dez=(list path)
|
||||
@ -114,8 +108,13 @@
|
||||
:: +user-files: all userspace hoon files
|
||||
::
|
||||
++ user-files
|
||||
|= bas=path
|
||||
%. directories:file-ovum
|
||||
|= [bas=path exc=(list spur)]
|
||||
=/ dirs
|
||||
?~ exc ~(tap in dir:.^(arch %cy bas))
|
||||
%+ skim
|
||||
~(tap in dir:.^(arch %cy bas))
|
||||
|=(=spur =(~ (find ~[spur] exc)))
|
||||
%. dirs
|
||||
|= sal=(list spur)
|
||||
^- (list (pair path (cask)))
|
||||
::
|
||||
@ -154,8 +153,9 @@
|
||||
++ solid
|
||||
:: sys: root path to boot system, `/~me/[desk]/now/sys`
|
||||
:: dez: secondary desks and their root paths
|
||||
:: exc: list of desk folders to exlclude
|
||||
::
|
||||
|= [sys=path dez=(list [desk path]) dub=? now=@da prime=?]
|
||||
|= [sys=path dez=(list [desk path]) dub=? now=@da prime=? exc=(list spur)]
|
||||
^- pill
|
||||
=/ bas=path (scag 3 sys)
|
||||
=/ compiler-path (weld sys /hoon)
|
||||
@ -201,7 +201,8 @@
|
||||
:- (boot-ovum:pill compiler-src arvo-src)
|
||||
%+ turn
|
||||
(snoc (turn dez tail) bas)
|
||||
file-ovum2:pill
|
||||
|= =path
|
||||
(file-ovum2 [path exc])
|
||||
.*(0 arvo-formula)
|
||||
|= [ovo=ovum ken=*]
|
||||
[~ (slum ken [now ovo])]
|
||||
@ -230,15 +231,18 @@
|
||||
:+ boot-ova ~
|
||||
=. dez (snoc dez [%base bas])
|
||||
%+ weld
|
||||
(turn dez file-ovum)
|
||||
%+ turn dez
|
||||
|= [dek=desk bas=path]
|
||||
(file-ovum [dek bas exc])
|
||||
?. prime ~
|
||||
[(prep-ovum (turn dez tail))]~
|
||||
::
|
||||
++ brass
|
||||
:: sys: root path to boot system, `/~me/[desk]/now/sys`
|
||||
:: dez: secondary desks and their root paths
|
||||
:: exc: list of desk folders to exclude
|
||||
::
|
||||
|= [sys=path dez=(list [desk path]) prime=?]
|
||||
|= [sys=path dez=(list [desk path]) prime=? exc=(list spur)]
|
||||
^- pill
|
||||
=/ bas=path (scag 3 sys)
|
||||
:: compiler-source: hoon source file producing compiler, `sys/hoon`
|
||||
@ -274,12 +278,14 @@
|
||||
::
|
||||
:+ %pill %brass
|
||||
:+ boot-ova
|
||||
:~ (boot-ovum:pill compiler-source arvo-source)
|
||||
(file-ovum2:pill bas)
|
||||
:~ (boot-ovum compiler-source arvo-source)
|
||||
(file-ovum2 [bas exc])
|
||||
==
|
||||
=. dez (snoc dez [%base bas])
|
||||
%+ weld
|
||||
(turn dez file-ovum)
|
||||
%+ turn dez
|
||||
|= [dek=desk bas=path]
|
||||
(file-ovum [dek bas exc])
|
||||
?. prime ~
|
||||
[(prep-ovum (turn dez tail))]~
|
||||
::
|
||||
@ -355,7 +361,7 @@
|
||||
::TODO will exclude non-:directories files, such as /changelog/txt
|
||||
=- (murn - same)
|
||||
^- (list (unit ovum))
|
||||
:~ `(file-ovum as (en-beam beak /))
|
||||
:~ `(file-ovum as (en-beam beak /) ~)
|
||||
::
|
||||
?. pri ~
|
||||
`(prep-ovum (en-beam beak /) ~)
|
||||
|
Loading…
Reference in New Issue
Block a user