1 USING: kernel system sequences io.files io.directories
2 io.pathnames io.launcher bootstrap.image http.client update.util ;
5 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7 : run-command ( cmd -- ) to-strings try-process ;
9 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
11 : git-pull-clean ( -- )
12 image parent-directory
14 { "git" "pull" "git://factorcode.org/git/factor.git" branch-name }
19 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
21 : remote-clean-image ( -- url )
22 { "http://factorcode.org/images/clean/" platform "/" my-boot-image-name }
25 : download-clean-image ( -- ) remote-clean-image download ;
27 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29 : make-clean ( -- ) { gnu-make "clean" } run-command ;
30 : make ( -- ) { gnu-make } run-command ;
31 : boot ( -- ) { "./factor" { "-i=" my-boot-image-name } } run-command ;
33 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
36 image parent-directory
45 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
48 image parent-directory
59 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!