]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/tools/deploy/unix/unix.factor
use radix literals
[factor.git] / basis / tools / deploy / unix / unix.factor
index 2646f2d5a490f6d1451e1e6ed1db37efd56d6a69..629e607b625bdfc6b49adb9f032583b3c5365dd6 100644 (file)
@@ -1,25 +1,24 @@
 ! Copyright (C) 2008 James Cash
 ! See http://factorcode.org/license.txt for BSD license.
-USING: io io.pathnames io.directories io.files
-io.files.info.unix io.backend kernel namespaces make sequences
-system tools.deploy.backend tools.deploy.config
-tools.deploy.config.editor assocs hashtables prettyprint ;
+USING: io io.backend io.directories io.files.info.unix kernel
+namespaces sequences system tools.deploy.backend
+tools.deploy.config tools.deploy.config.editor ;
 IN: tools.deploy.unix
 
 : create-app-dir ( vocab bundle-name -- vm )
     copy-vm
-    dup OCT: 755 set-file-permissions ;
+    dup 0o755 set-file-permissions ;
 
 : bundle-name ( -- str )
     deploy-name get ;
 
 M: unix deploy* ( vocab -- )
-    "." resource-path [
+    "resource:" [
         dup deploy-config [
             [ bundle-name create-app-dir ] keep
             [ bundle-name image-name ] keep
             namespace make-deploy-image
-            bundle-name "" copy-resources
-            bundle-name normalize-path [ "Binary deployed to " % % "." % ] "" make print
+            bundle-name "" [ copy-resources ] [ copy-libraries ] 3bi
+            bundle-name normalize-path "Binary deployed to " "." surround print
         ] bind
     ] with-directory ;