Update mason.platform for webapps.mason
parent
edeeabb9a1
commit
cc96b3bd7e
|
@ -1,11 +1,14 @@
|
||||||
! Copyright (C) 2008 Eduardo Cavazos, Slava Pestov.
|
! Copyright (C) 2008 Eduardo Cavazos, Slava Pestov.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: kernel system accessors namespaces splitting sequences
|
USING: kernel system accessors namespaces splitting sequences
|
||||||
mason.config bootstrap.image ;
|
mason.config bootstrap.image assocs ;
|
||||||
IN: mason.platform
|
IN: mason.platform
|
||||||
|
|
||||||
|
: (platform) ( os cpu -- string )
|
||||||
|
{ { CHAR: . CHAR: - } } substitute "-" glue ;
|
||||||
|
|
||||||
: platform ( -- string )
|
: platform ( -- string )
|
||||||
target-os get "-" target-cpu get "." split "-" join 3append ;
|
target-os get target-cpu get (platform) ;
|
||||||
|
|
||||||
: gnu-make ( -- string )
|
: gnu-make ( -- string )
|
||||||
target-os get { "freebsd" "openbsd" "netbsd" } member? "gmake" "make" ? ;
|
target-os get { "freebsd" "openbsd" "netbsd" } member? "gmake" "make" ? ;
|
||||||
|
|
Loading…
Reference in New Issue