-
Notifications
You must be signed in to change notification settings - Fork 4
/
help.sh
66 lines (51 loc) · 1.24 KB
/
help.sh
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/sh
set -e
set -x
rename()
{
for f in `ls *$1`; do
b=`basename $f $1`
mv $f $b$2
done
}
share_help=`pwd`/meditor/data/help
rm -rf help
# reStructuredText
(
mkdir -p help/ref
cd help/ref
wget http://docutils.sourceforge.net/docs/ref/rst/definitions.txt
wget http://docutils.sourceforge.net/docs/ref/rst/directives.txt
wget http://docutils.sourceforge.net/docs/ref/rst/introduction.txt
wget http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.txt
wget http://docutils.sourceforge.net/docs/ref/rst/roles.txt
rename .txt .rst
)
(
mkdir -p help
cd help
wget http://docutils.sourceforge.net/docs/user/rst/cheatsheet.txt
wget http://docutils.sourceforge.net/docs/user/rst/demo.txt
wget http://docutils.sourceforge.net/docs/user/rst/quickstart.txt
rename .txt .rst
mkdir -p images
(
cd images
wget http://docutils.sourceforge.net/docs/user/rst/images/biohazard.png
wget http://docutils.sourceforge.net/docs/user/rst/images/title.png
)
)
# Markdown
(
cd help
wget https://daringfireball.net/projects/markdown/basics.text
wget https://daringfireball.net/projects/markdown/syntax.text
rename .text .md
)
# copy help to application
mkdir -p $share_help
(
cd help
cp -rf * $share_help
)
# vim: tabstop=4 shiftwidth=4 expandtab