... | ... |
@@ -1,6 +1,4 @@ |
1 |
-<!--#include file="res/header.html" --> |
|
2 |
- |
|
3 |
-<title><!--ml.sh LL download_downloads" --> - LibertyBSD</title> |
|
1 |
+<!--header.sh LL title_downloads"--> |
|
4 | 2 |
|
5 | 3 |
<h2><!--ml.sh LL download_downloads" --></h2> |
6 | 4 |
|
... | ... |
@@ -53,4 +51,4 @@ |
53 | 51 |
</table> |
54 | 52 |
</center> --> |
55 | 53 |
|
56 |
-<!--#include file="res/footer.html" --> |
|
54 |
+<!--footer.sh LL"--> |
... | ... |
@@ -1,8 +1,6 @@ |
1 |
-<!--#include file="res/header.html" --> |
|
1 |
+<!--header.sh LL title_faqs"--> |
|
2 | 2 |
|
3 | 3 |
|
4 |
-<title>FAQs - LibertyBSD</title> |
|
5 |
- |
|
6 | 4 |
<h1>Frequently-Asked Questions</h1> |
7 | 5 |
|
8 | 6 |
<ul id="#faq"> |
... | ... |
@@ -53,4 +51,4 @@ |
53 | 51 |
squeaky-clean and fully-libre, by the way.</li> |
54 | 52 |
</ul> |
55 | 53 |
|
56 |
-<!--#include file="res/footer.html" --> |
|
54 |
+<!--footer.sh LL"--> |
... | ... |
@@ -1,6 +1,4 @@ |
1 |
-<!--#include file="res/header.html" --> |
|
2 |
- |
|
3 |
-<title>LibertyBSD</title> |
|
1 |
+<!--header.sh LL title_index"--> |
|
4 | 2 |
|
5 | 3 |
<a id="logo" href="res/img/art/logo.png"> |
6 | 4 |
<img src="res/img/art/logo.png" |
... | ... |
@@ -43,7 +41,4 @@ LibertyBSD's logo"> |
43 | 41 |
</div> |
44 | 42 |
|
45 | 43 |
|
46 |
- |
|
47 |
- |
|
48 |
- |
|
49 |
-<!--#include file="res/footer.html" --> |
|
44 |
+<!--footer.sh LL"--> |
... | ... |
@@ -8,6 +8,8 @@ function process_file |
8 | 8 |
local lang="$2" |
9 | 9 |
|
10 | 10 |
sed -i 's%<!--ml.sh LL%<!--#exec cmd="bash /htdocs/libertybsd.net/res/bin/ml.sh LL%g' $file |
11 |
+ sed -i 's%<!--header.sh LL%<!--#exec cmd="sh /htdocs/libertybsd.net/res/bin/header.sh LL%g' $file |
|
12 |
+ sed -i 's%<!--footer.sh LL%<!--#exec cmd="sh /htdocs/libertybsd.net/res/bin/footer.sh LL%g' $file |
|
11 | 13 |
sed -i 's% LL % '"$lang"' %g' $file |
12 | 14 |
} |
13 | 15 |
|
0 | 9 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,15 @@ |
1 |
+#!/bin/sh |
|
2 |
+ |
|
3 |
+alias mlsh=/htdocs/libertybsd.net/res/bin/ml.sh |
|
4 |
+header="$(cat /htdocs/libretybsd.net/res/header.html)" |
|
5 |
+lang="$1" |
|
6 |
+title_raw="$2" |
|
7 |
+title="$(mlsh $lang $title_raw)" |
|
8 |
+ |
|
9 |
+echo "$header" \ |
|
10 |
+| sed 's% TT %'"$title"'%g' \ |
|
11 |
+| sed 's% INDEX %'"$(mlsh $lang index)"'%g' \ |
|
12 |
+| sed 's% INSTALL %'"$(mlsh $lang install)"'%g' \ |
|
13 |
+| sed 's% FAQS %'"$(mlsh $lang faqs)"'%g' \ |
|
14 |
+| sed 's% DOWNLOAD %'"$(mlsh $lang download)"'%g' \ |
|
15 |
+| sed 's% GIT %'"$(mlsh $lang git)"'%g' |
... | ... |
@@ -1,10 +1,7 @@ |
1 | 1 |
<footer> |
2 | 2 |
<hr /> |
3 | 3 |
<small> |
4 |
-The HTML & CSS used to generate this webpage is hereby released into the public domain. |
|
5 |
-This applies worldwide. In case this is not legally possible, any entity is granted |
|
6 |
-the right to use this work for any purpose, without any conditions, unless such |
|
7 |
-conditions are required by law. |
|
4 |
+LICENSE |
|
8 | 5 |
</small> |
9 | 6 |
</footer> |
10 | 7 |
|
... | ... |
@@ -18,6 +18,7 @@ |
18 | 18 |
<head> |
19 | 19 |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
20 | 20 |
<link rel="stylesheet" type="text/css" href="/new/res/style.css"> |
21 |
+ <title> TT </title> |
|
21 | 22 |
</head> |
22 | 23 |
|
23 | 24 |
<body> |
... | ... |
@@ -26,22 +27,19 @@ |
26 | 27 |
<table border=2> |
27 | 28 |
<tr> |
28 | 29 |
<td> |
29 |
- <a href="index.shtml">Index</a> |
|
30 |
+ <a href="index.shtml"> INDEX </a> |
|
30 | 31 |
</td> |
31 | 32 |
<td> |
32 |
- <a href="install.shtml">Installation Guide</a> |
|
33 |
+ <a href="install.shtml"> INSTALL </a> |
|
33 | 34 |
</td> |
34 | 35 |
<td> |
35 |
- <a href="faq.shtml">FAQs</a> |
|
36 |
+ <a href="faq.shtml"> FAQS </a> |
|
36 | 37 |
</td> |
37 | 38 |
<td> |
38 |
- <a href="download.shtml">Download</a> |
|
39 |
+ <a href="download.shtml"> DOWNLOAD </a> |
|
39 | 40 |
</td> |
40 | 41 |
<td> |
41 |
- <a href="git.shtml">Git Development</a> |
|
42 |
- </td> |
|
43 |
- <td> |
|
44 |
- <a href="workarounds.shtml">Workarounds</a> |
|
42 |
+ <a href="git.shtml"> GIT </a> |
|
45 | 43 |
</td> |
46 | 44 |
</tr> |
47 | 45 |
</table> |
... | ... |
@@ -49,3 +49,26 @@ download_install_only="Install-only" |
49 | 49 |
location_chiba_japan="Chiba, Japan" |
50 | 50 |
location_usa="USA" |
51 | 51 |
location_texas_usa="Texas, USA" |
52 |
+ |
|
53 |
+ |
|
54 |
+# --------------------------------------- |
|
55 |
+# header |
|
56 |
+ |
|
57 |
+index="Index" |
|
58 |
+downloads="Downloads" |
|
59 |
+faqs="FAQs" |
|
60 |
+install="Install Guide" |
|
61 |
+git="Git" |
|
62 |
+ |
|
63 |
+title_index="LibertyBSD - Index" |
|
64 |
+title_download="LibertyBSD - Download" |
|
65 |
+title_install="LibertyBSD - Installation" |
|
66 |
+title_git="LibertyBSD - Git" |
|
67 |
+ |
|
68 |
+# --------------------------------------- |
|
69 |
+# footer |
|
70 |
+ |
|
71 |
+footer_license="The HTML & CSS used to generate this webpage is hereby released |
|
72 |
+into the public domain. This applies worldwide. In case this is not legally |
|
73 |
+possible, any entity is granted the right to use this work for any purpose, |
|
74 |
+without any conditions, unless such conditions are required by law." |