From bbe6b729bf243884474c38cb68639ac07d72b6ed Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Thu, 1 Apr 2010 15:11:52 -0700 Subject: [PATCH] =?UTF-8?q?tools.deploy:=20add=20a=20=C2=ABdeploy-image-on?= =?UTF-8?q?ly=C2=BB=20word=20that=20only=20builds=20the=20image=20file=20t?= =?UTF-8?q?o=20a=20specified=20location?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- basis/tools/deploy/deploy-docs.factor | 9 ++++++++- basis/tools/deploy/deploy.factor | 7 +++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/basis/tools/deploy/deploy-docs.factor b/basis/tools/deploy/deploy-docs.factor index 976fc25357..169fdd501a 100755 --- a/basis/tools/deploy/deploy-docs.factor +++ b/basis/tools/deploy/deploy-docs.factor @@ -18,6 +18,7 @@ $nl ARTICLE: "tools.deploy.usage" "Deploy tool usage" "Once the necessary deployment flags have been set, the application can be deployed:" { $subsections deploy } +{ $subsections deploy-image-only } "For example, you can deploy the " { $vocab-link "hello-ui" } " demo which comes with Factor. Note that this demo already has a deployment configuration, so nothing needs to be configured:" { $code "\"hello-ui\" deploy" } { $list @@ -61,4 +62,10 @@ ABOUT: "tools.deploy" HELP: deploy { $values { "vocab" "a vocabulary specifier" } } -{ $description "Deploys " { $snippet "vocab" } ", saving the deployed image as " { $snippet { $emphasis "vocab" } ".image" } "." } ; +{ $description "Deploys " { $snippet "vocab" } " into a packaged application. This will create a directory containing the Factor VM, a deployed image set up to run the " { $link POSTPONE: MAIN: } " entry point of " { $snippet "vocab" } " at startup, and any " { $link "deploy-resources" } " and shared libraries the application depends on." } ; + +HELP: deploy-image-only +{ $values { "vocab" "a vocabulary specifier" } { "image" "a pathname" } } +{ $description "Deploys " { $snippet "vocab" } ", saving the deployed image to the location specified by " { $snippet "image" } ". This only builds the Factor image for the vocabulary; to create a complete packaged application, use " { $link deploy } "." } ; + +{ deploy deploy-image-only } related-words diff --git a/basis/tools/deploy/deploy.factor b/basis/tools/deploy/deploy.factor index e57cc1f04b..9430802803 100644 --- a/basis/tools/deploy/deploy.factor +++ b/basis/tools/deploy/deploy.factor @@ -1,13 +1,16 @@ ! Copyright (C) 2007, 2008 Slava Pestov. ! See http://factorcode.org/license.txt for BSD license. USING: tools.deploy.backend system vocabs.loader kernel -combinators ; +combinators tools.deploy.config.editor ; IN: tools.deploy : deploy ( vocab -- ) deploy* ; +: deploy-image-only ( vocab image -- ) + [ vm ] 2dip swap dup deploy-config make-deploy-image drop ; + { { [ os macosx? ] [ "tools.deploy.macosx" ] } { [ os winnt? ] [ "tools.deploy.windows" ] } { [ os unix? ] [ "tools.deploy.unix" ] } -} cond require \ No newline at end of file +} cond require