Merge branch 'master' of git://factorcode.org/git/factor

db4
Slava Pestov 2009-04-13 19:58:16 -05:00
commit f1038cee97
4 changed files with 17 additions and 6 deletions

2
extra/mason/cleanup/cleanup.factor Normal file → Executable file
View File

@ -18,6 +18,6 @@ IN: mason.cleanup
build-dir [
compress-image
compress-test-log
"factor" delete-tree
"factor" really-delete-tree
] with-directory
] unless ;

15
extra/mason/common/common.factor Normal file → Executable file
View File

@ -2,11 +2,22 @@
! See http://factorcode.org/license.txt for BSD license.
USING: kernel namespaces sequences splitting system accessors
math.functions make io io.files io.pathnames io.directories
io.launcher io.encodings.utf8 prettyprint
io.directories.hierarchy io.launcher io.encodings.utf8 prettyprint
combinators.short-circuit parser combinators calendar
calendar.format arrays mason.config locals ;
calendar.format arrays mason.config locals system ;
IN: mason.common
HOOK: really-delete-tree os ( path -- )
M: windows really-delete-tree
#! Workaround: Cygwin GIT creates read-only files for
#! some reason.
[ { "chmod" "ug+rw" "-R" } swap (normalize-path) suffix try-process ]
[ delete-tree ]
bi ;
M: unix really-delete-tree delete-tree ;
: short-running-process ( command -- )
#! Give network operations at most 15 minutes to complete.
<process>

2
extra/mason/release/archive/archive.factor Normal file → Executable file
View File

@ -29,7 +29,7 @@ IN: mason.release.archive
"-fs" "HFS+"
"-volname" "factor" }
archive-name suffix try-process
"dmg-root" delete-tree ;
"dmg-root" really-delete-tree ;
: make-unix-archive ( -- )
[ "tar" , "-cvzf" , archive-name , "factor" , ] { } make try-process ;

4
extra/mason/release/tidy/tidy.factor Normal file → Executable file
View File

@ -12,11 +12,11 @@ IN: mason.release.tidy
append ;
: remove-common-files ( -- )
common-files [ delete-tree ] each ;
common-files [ really-delete-tree ] each ;
: remove-factor-app ( -- )
target-os get "macosx" =
[ "Factor.app" delete-tree ] unless ;
[ "Factor.app" really-delete-tree ] unless ;
: tidy ( -- )
"factor" [ remove-factor-app remove-common-files ] with-directory ;