builder: add factor-binary word

db4
Eduardo Cavazos 2008-02-04 21:58:57 -06:00
parent 1f66e8173f
commit bd2226d89e
1 changed files with 14 additions and 3 deletions

View File

@ -1,7 +1,8 @@
USING: kernel io io.files io.launcher hashtables tools.deploy.backend
system continuations namespaces sequences splitting math.parser
prettyprint tools.time calendar bake vars http.client ;
prettyprint tools.time calendar bake vars http.client
combinators ;
IN: builder
@ -39,6 +40,15 @@ SYMBOL: builder-recipients
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
: factor-binary ( -- name )
os
{ { "macosx" [ "./Factor.app/Contents/MacOS/factor" ] }
{ "windows" [ "./factor-nt.exe" ] }
[ drop "./factor" ] }
case ;
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
VAR: stamp
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@ -92,7 +102,7 @@ VAR: stamp
`{
{ +arguments+ {
"./factor"
,[ factor-binary ]
,[ "-i=" boot-image-name append ]
"-no-user-init"
} }
@ -110,7 +120,8 @@ VAR: stamp
] if
`{
{ +arguments+ { "./factor" "-e=USE: tools.browser load-everything" } }
{ +arguments+
{ ,[ factor-binary ] "-e=USE: tools.browser load-everything" } }
{ +stdout+ "../load-everything-log" }
{ +stderr+ +stdout+ }
}