]> gitweb.factorcode.org Git - factor.git/blob - basis/tools/deploy/unix/unix.factor
Split up io.directories further, move file types to io.files.types. Bunny demo no...
[factor.git] / basis / tools / deploy / unix / unix.factor
1 ! Copyright (C) 2008 James Cash
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: io io.files io.files.info.unix io.backend kernel
4 namespaces make sequences system tools.deploy.backend
5 tools.deploy.config tools.deploy.config.editor assocs hashtables
6 prettyprint ;
7 IN: tools.deploy.unix
8
9 : create-app-dir ( vocab bundle-name -- vm )
10     dup "" copy-fonts
11     "" copy-vm
12     dup OCT: 755 set-file-permissions ;
13
14 : bundle-name ( -- str )
15     deploy-name get ;
16
17 M: unix deploy* ( vocab -- )
18     "." resource-path [
19         dup deploy-config [
20             [ bundle-name create-app-dir ] keep
21             [ bundle-name image-name ] keep
22             namespace make-deploy-image
23             bundle-name normalize-path [ "Binary deployed to " % % "." % ] "" make print
24         ] bind
25     ] with-directory ;