Namdak Tonpa 6 years ago
parent
commit
4e7ac8dc2d

+ 1 - 1
include/api.hrl

@@ -1,4 +1,4 @@
--define(MAD,[compile/1,app/1,get/1,release/1,resolve/1,clean/1,
+-define(MAD,[compile/1,app/1,get/1,man/1,release/1,resolve/1,clean/1,
              start/1,attach/1,stop/1,sh/1,deps/1,up/1,fetch/1,
             static/1,eunit/1,strip/1]).
 

+ 1 - 1
include/mad.hrl

@@ -1 +1 @@
--define(VERSION,"1d4fd1").
+-define(VERSION,"a31d04").

BIN
mad


+ 39 - 0
man/mad_app.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>APP</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>APP</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>APP</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The APP module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 39 - 0
man/mad_compile.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>COMPILE</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>COMPILE</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>COMPILE</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The COMPILE module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 39 - 0
man/mad_cubical.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>CUBICAL</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>CUBICAL</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>CUBICAL</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The CUBICAL module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 39 - 0
man/mad_dtl.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>DTL</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>DTL</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>DTL</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The DTL module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 39 - 0
man/mad_erl.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>ERL</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>ERL</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>ERL</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The ERL module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 39 - 0
man/mad_escript.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>ESCRIPT</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>ESCRIPT</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>ESCRIPT</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The ESCRIPT module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 39 - 0
man/mad_eunit.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>EUNIT</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>EUNIT</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>EUNIT</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The EUNIT module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 39 - 0
man/mad_git.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>GIT</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>GIT</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>GIT</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The GIT module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 39 - 0
man/mad_hooks.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>HOOKS</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>HOOKS</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>HOOKS</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The HOOKS module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 39 - 0
man/mad_leex.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>LEEX</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>LEEX</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>LEEX</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The LEEX module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 39 - 0
man/mad_man.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>MAN</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>MAN</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>MAN</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The MAN module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 39 - 0
man/mad_none.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>NONE</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>NONE</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>NONE</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The NONE module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 39 - 0
man/mad_peg.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>PEG</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>PEG</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>PEG</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The PEG module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 39 - 0
man/mad_port.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>PORT</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>PORT</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>PORT</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The PORT module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 39 - 0
man/mad_release.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>RELEASE</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>RELEASE</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>RELEASE</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The RELEASE module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 39 - 0
man/mad_repl.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>REPL</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>REPL</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>REPL</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The REPL module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 39 - 0
man/mad_run.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>RUN</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>RUN</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>RUN</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The RUN module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 39 - 0
man/mad_script.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>SCRIPT</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>SCRIPT</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>SCRIPT</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The SCRIPT module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 39 - 0
man/mad_static.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>STATIC</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>STATIC</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>STATIC</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The STATIC module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 39 - 0
man/mad_systools.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>SYSTOOLS</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>SYSTOOLS</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>SYSTOOLS</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The SYSTOOLS module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 39 - 0
man/mad_utils.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>UTILS</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>UTILS</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>UTILS</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The UTILS module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 39 - 0
man/mad_yecc.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>YECC</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>YECC</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>YECC</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The YECC module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 39 - 0
priv/man/module.htm

@@ -0,0 +1,39 @@
+<html>
+<head>
+    <meta charset="utf-8" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="description" content="" />
+    <meta name="author" content="Maxim Sokhatsky" />
+    <title>MAN_NAME</title>
+    <link rel="stylesheet" href="https://synrc.space/synrc.css" />
+</head>
+<body>
+<nav>
+    <a href='https://n2o.space'>SPACE</a>
+    <a href='../index.html'>MAN_NAME</a>
+</nav>
+<header>
+    <a href="../index.html"><img src="https://n2o.space/img/Synrc Neo.svg"></a>
+    <h1>MAN_NAME</h1>
+</header>
+<main>
+    <section>
+
+<h3>INTRO</h3>
+
+<p>The MAN_NAME module.</p>
+    </section>
+    <section>
+<p>This module may refer to:
+MAN_MODULES
+</p>
+    </section>
+</main>
+
+<footer>
+    2005&mdash;2019 &copy; Synrc Research Center
+</footer>
+
+</body>
+</html>

+ 2 - 1
src/mad.erl

@@ -32,6 +32,7 @@ atomize("app"++_) -> 'app';
 atomize("dep")    -> 'deps';
 atomize("deps")   -> 'deps';
 atomize("cle"++_) -> 'clean';
+atomize("man")    -> 'man';
 atomize("com"++_) -> 'compile';
 atomize("eunit")  -> 'eunit';
 atomize("up")     -> 'up';
@@ -70,6 +71,6 @@ help()            -> info("MAD Manage Dependencies ~s~n",[?VERSION]),
                      info("    invoke = mad | mad list~n"),
                      info("      list = []  | command [options] list ~n"),
                      info("   command = app [web|mqtt] <name> | deps | clean | compile | strip~n"),
-                     info("           | bundle [beam|script] <name> | get <repo> | up [name] ~n"),
+                     info("           | bundle [beam|script] <name> | man | get <repo> | up [name] ~n"),
                      info("           | start | stop | attach | repl | static <min> ~n"),
                      return(false).

+ 1 - 0
src/mad_local.erl

@@ -3,6 +3,7 @@
 -export(?MAD).
 
 compile(Params)   -> mad_compile:compile(Params).
+man(Params)       -> mad_man:man(Params).
 app(Params)       -> mad_static:app(Params).
 static(Params)    -> mad_static:main([],Params).
 release(Params)   -> mad_release:release(Params).

+ 30 - 0
src/mad_man.erl

@@ -0,0 +1,30 @@
+-module(mad_man).
+-doc("Generate n2o.dev man pages.").
+-compile(export_all).
+
+man(Params) ->
+   Temp = template(),
+   [ generate(filename:basename(I,".erl"),Temp)
+    || I <- filelib:wildcard("*/src/**/*.erl")
+         ++ filelib:wildcard("src/**/*.erl") ],
+   false.
+
+replace(S,A,B) -> re:replace(S,A,B,[global,{return,list}]).
+fix([Prefix]) -> Prefix;
+fix([Prefix,Name|Rest]) -> Name.
+generate(Lower,Temp) ->
+    Name = string:to_upper(Lower),
+    Bin = iolist_to_binary(replace(Temp,"MAN_NAME",fix(string:tokens(Name,"_")))),
+    Gen = lists:concat(["man/",Lower,".htm"]),
+    case file:read_file_info(Gen) of
+         {error,_} -> io:format("Generated: ~p~n",[Gen]), file:write_file(Gen, Bin);
+         {ok,A} -> case element(2,A) > size(Bin) of
+                        true -> skip;
+                        false -> warning end end.
+
+template() ->
+    mad_repl:load(),
+    try lists:flatten(
+        [case string:str(File,"priv/man") of 1 -> Bin; _ -> []
+          end || {File,Bin} <- ets:tab2list(filesystem), is_list(File)])
+        catch _:_ -> [] end.