Namdak Tonpa 9 лет назад
Родитель
Сommit
167c36e706
5 измененных файлов с 7 добавлено и 9 удалено
  1. 1 1
      Makefile
  2. 3 4
      doc/commands.tex
  3. 1 1
      include/mad.hrl
  4. BIN
      mad
  5. 2 3
      src/mad.erl

+ 1 - 1
Makefile

@@ -1,4 +1,4 @@
 default:
 	echo "-define(VERSION,\"`git rev-parse HEAD | head -c 6`\")." > include/mad.hrl
 	erlc -o ebin deps/ling/bc/*.erl || true
-	./mad cle dep com bun mad
+	./mad cle dep com rel script mad

+ 3 - 4
doc/commands.tex

@@ -5,12 +5,11 @@ Synrc mad has a simple interface as follows:
 \vspace{1\baselineskip}
 \begin{lstlisting}
   MAD Container Tool version b547fa
-  BNF:
+
       invoke = mad params
-      params = [] | run params
-         run = command [ options ]
+      params = [] | command [ options  ] params
      command = app     | deps  | clean | compile | up
-             | release [ beam  | ling  | script  | runc | depot ]
+             | release [ beam  | ling  | script  | runc ]
              | deploy  | start | stop  | attach  | sh
 \end{lstlisting}
 \vspace{1\baselineskip}

+ 1 - 1
include/mad.hrl

@@ -1 +1 @@
--define(VERSION,"cd4b59").
+-define(VERSION,"af2e1e").


+ 2 - 3
src/mad.erl

@@ -45,10 +45,9 @@ info(Format,Args) -> io:format(lists:concat([Format,"\r"]),Args).
 help(Reason,D)    -> help(io_lib:format("~s ~p", [Reason, D])).
 help(Msg)         -> help().
 help()            -> info("MAD Container Tool version ~s~n",[?VERSION]),
-                     info("BNF: ~n"),
+                     info("~n"),
                      info("    invoke = mad params~n"),
-                     info("    params = [] | run params ~n"),
-                     info("       run = command [ options ]~n"),
+                     info("    params = [] | command [ options  ] params ~n"),
                      info("   command = app     | deps  | clean | compile | up~n"),
                      info("           | release [ beam  | ling  | script  | runc | depot ]~n"),
                      info("           | deploy  | start | stop  | attach  | sh ~n"),