2 USING: kernel system sequences io.files io.launcher bootstrap.image
4 builder.util builder.release.branch ;
8 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10 : run-command ( cmd -- ) to-strings try-process ;
12 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14 : git-pull-clean ( -- )
15 image parent-directory
17 { "git" "pull" "git://factorcode.org/git/factor.git" branch-name }
22 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
24 : remote-clean-image ( -- url )
25 { "http://factorcode.org/images/clean/" platform "/" my-boot-image-name }
28 : download-clean-image ( -- ) remote-clean-image download ;
30 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
32 : make-clean ( -- ) { gnu-make "clean" } run-command ;
33 : make ( -- ) { gnu-make } run-command ;
34 : boot ( -- ) { "./factor" { "-i=" my-boot-image-name } } run-command ;
36 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
39 image parent-directory
48 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
51 image parent-directory
62 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!