remove math.blas.syntax and merge parsing words into math.blas.vectors/matrices
[factor/jcg.git] / extra / mason / help / help.factor
blob9a4e2be99630001a594b870551f96fd1229112cf
1 ! Copyright (C) 2008 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: arrays help.html io.directories io.files io.launcher
4 kernel make mason.common mason.config namespaces sequences ;
5 IN: mason.help
7 : make-help-archive ( -- )
8     "factor/temp" [
9         { "tar" "cfz" "docs.tar.gz" "docs" } try-process
10     ] with-directory ;
12 : upload-help-archive ( -- )
13     "factor/temp/docs.tar.gz"
14     help-username get
15     help-host get
16     help-directory get "/docs.tar.gz" append
17     upload-safely ;
19 : (upload-help) ( -- )
20     upload-help? get [
21         make-help-archive
22         upload-help-archive
23     ] when ;
25 : upload-help ( -- )
26     status get status-clean eq? [ (upload-help) ] when ;