equal
deleted
inserted
replaced
1 #!/bin/sh |
1 #!/bin/sh |
2 |
2 |
3 echo '<html>' |
3 cat <<EOF |
4 echo '<head>' |
4 <html> |
5 echo ' <meta http-equiv="Content-Type" content="text/html; charset=utf-8">' |
5 <head> |
6 echo ' <title>Tips</title>' |
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
7 echo ' <style type="text/css">' |
7 <title>Tips</title> |
8 echo ' body { background-color: LightYellow; }' |
8 <style type="text/css"> |
9 echo ' a { text-decoration:none; }' |
9 body { background-color: LightYellow; } |
10 echo ' a:link { color: brown; }' |
10 a { text-decoration:none; } |
11 echo ' a:visited { color: IndianRed; }' |
11 a:link { color: brown; } |
12 echo ' a:hover { background: bisque; border-radius: 10px; padding: 1px; }' |
12 a:visited { color: IndianRed; } |
13 echo ' </style>' |
13 a:hover { background: bisque; border-radius: 10px; padding: 1px; } |
14 echo '</head>' |
14 </style> |
15 echo '<body>' |
15 </head> |
16 echo '<h1>Tips</h1>' |
16 <body> |
17 echo '<ul>' |
17 <h1>Tips</h1> |
|
18 <ul> |
|
19 EOF |
18 |
20 |
19 for file in *.rst *.txt; do |
21 for file in *.rst *.txt; do |
20 case $file in |
22 case $file in |
21 HEADER.rst) continue; |
23 HEADER.rst) continue; |
22 esac |
24 esac |
28 frame) echo " <li><a href=\"$name.$ext\" target=\"article\">$name</a>" ;; |
30 frame) echo " <li><a href=\"$name.$ext\" target=\"article\">$name</a>" ;; |
29 *) exit 1 ;; |
31 *) exit 1 ;; |
30 esac |
32 esac |
31 done |
33 done |
32 |
34 |
33 echo '<p>' |
35 cat <<EOF |
34 echo '<address>' |
36 <p> |
35 echo ' <a href="mailto:gavenkoa@gmail.com">Oleksandr Gavenko</a>' |
37 <address> |
36 echo '</address>' |
38 <a href="mailto:gavenkoa@gmail.com">Oleksandr Gavenko</a> |
37 echo '</body>' |
39 </address> |
38 echo '</html>' |
40 </body> |
|
41 </html> |
|
42 EOF |