]> gitweb.factorcode.org Git - factor.git/commitdiff
webapps.mason.docs-update: make docs path configurable
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sun, 3 Oct 2010 02:05:11 +0000 (19:05 -0700)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sun, 3 Oct 2010 02:05:11 +0000 (19:05 -0700)
extra/webapps/mason/docs-update/docs-update.factor

index 7b685890e75167debee4c0db27d7f740e2bec80f..3ecfbef1902c2e52b4dc1231f237bfc38ebf370d 100644 (file)
@@ -1,15 +1,17 @@
 ! Copyright (C) 2010 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: accessors continuations furnace.actions help.html
-http.server.responses io.directories io.directories.hierarchy
-io.launcher io.files io.pathnames kernel memoize threads
-webapps.mason.utils ;
+USING: accessors continuations namespaces sequences
+furnace.actions help.html http.server.responses io.directories
+io.directories.hierarchy io.launcher io.files io.pathnames
+kernel memoize threads webapps.mason.utils ;
 IN: webapps.mason.docs-update
 
+SYMBOL: docs-path
+
 : update-docs ( -- )
     home [
         "newdocs" make-directory
-        "newdocs" [ { "tar" "xfz" "../docs.tar.gz" } try-process ] with-directory
+        "newdocs" [ { "tar" "xfz" } docs-path get suffix try-process ] with-directory
 
         "docs" exists? [ "docs" "docs.old" move-file ] when
         "newdocs/docs" "docs" move-file