forked from FabModules/fabmodules-html5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mod_index
executable file
·53 lines (51 loc) · 2.94 KB
/
mod_index
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
#
# mod_index
# index fab modules
#
# Neil Gershenfeld
# (c) Massachusetts Institute of Technology 2014
#
# This work may be reproduced, modified, distributed,
# performed, and displayed for any purpose, but must
# acknowledge the fab modules project. Copyright is
# retained and must be preserved. The work is provided
# as is; no warranty is provided, and users accept all
# liability.
#
echo '<html>' > mods.html
echo '<head>' >> mods.html
echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">' >> mods.html
echo '</head>' >> mods.html
echo '<body>' >> mods.html
echo '<a href=http://cba.mit.edu>CBA</a> |' >> mods.html
echo '<a href=http://kokompe.cba.mit.edu>fab modules</a> |' >> mods.html
echo '<a href=http://fabfoundation.org>fab labs</a> |' >> mods.html
echo '<a href=http://github.com/fabmodules/fabmodules-html5>github project</a> |' >> mods.html
echo '<a href=https://github.com/FabModules/fabmodules-html5/wiki>documentation</a> |' >> mods.html
echo '<a href=https://github.com/FabModules/fabmodules-html5/issues>report issue</a><br><br>' >> mods.html
echo 'version: '`date`'<br><br>' >> mods.html
ls index.html > mods.tmp
ls mod_settings >> mods.tmp
ls mod_serve >> mods.tmp
ls mod_index >> mods.tmp
ls mods/*js >> mods.tmp
ls inputs/*js >> mods.tmp
ls outputs/*js >> mods.tmp
ls processes/*js >> mods.tmp
ls mod_server/*js >> mods.tmp
ls mod_server/*py >> mods.tmp
ls templates/*html >> mods.tmp
awk '{ printf "<a href=" $0 ">" $0 "</a><br>\n" }' mods.tmp >> mods.html
#echo "<br>mod_server dependencies: <a href=http://nodejs.org/>Node.js</a> (<a href=https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager>packages</a>), <a href=https://www.npmjs.org/>npm</a>, <a href=https://www.npmjs.org/package/ws>ws</a>, <a href=https://www.npmjs.org/package/serialport>serialport</a><br>" >> mods.html
echo "mod_server dependencies: <a href=http://nodejs.org/>Node.js</a> (<a href=https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager>packages</a>), <a href=https://www.npmjs.org/>npm</a>, <a href=https://www.npmjs.org/package/ws>ws</a><br>" >> mods.html
echo "mod_serial.py dependencies: <a href=https://www.python.org/>Python</a>, <a href=http://pyserial.sourceforge.net/pyserial.html>pySerial</a>, <a href=http://www.wxpython.org/>wxPython</a><br>" >> mods.html
echo '<a href=http://requirejs.org/docs/release/2.1.15/minified/require.js>require.js</a><br/>' >> mods.html
echo '<a href=http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v2.0.0.js>handlebars-v2.0.0.js</a><br/>' >> mods.html
echo '<br>This work may be reproduced, modified, distributed,<br>' >> mods.html
echo 'performed, and displayed for any purpose, but must<br>' >> mods.html
echo 'acknowledge the fab modules project. Copyright is<br>' >> mods.html
echo 'retained and must be preserved. The work is provided<br>' >> mods.html
echo 'as is; no warranty is provided, and users accept all<br>' >> mods.html
echo 'liability.' >> mods.html
rm mods.tmp