Browse code

Deployment!

Jaidyn Lev authored on 2019-01-08 06:54:01
Showing 3 changed files
... ...
@@ -7,9 +7,9 @@ function process_file
7 7
 	local file="$1"
8 8
 	local lang="$2"
9 9
 
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
10
+	sed -i 's%<!--ml.sh LL%<!--#exec cmd="bash /htdocs/libertybsd.net/http/res/bin/ml.sh LL%g' $file
11
+	sed -i 's%<!--header.sh LL%<!--#exec cmd="sh /htdocs/libertybsd.net/http/res/bin/header.sh LL%g' $file
12
+	sed -i 's%<!--footer.sh LL%<!--#exec cmd="sh /htdocs/libertybsd.net/http/res/bin/footer.sh LL%g' $file
13 13
 	sed -i 's% LL % '"$lang"' %g' $file
14 14
 }
15 15
 
... ...
@@ -21,6 +21,8 @@ function gen_lang_ver
21 21
 	mkdir public 2>/dev/null
22 22
 	mkdir public/$lang
23 23
 	cp -r base/* public/$lang/
24
+	cp -r res/ public/$lang/
25
+	rm -rf public/$lang/res/bin
24 26
 
25 27
 	for file in ./public/$lang/*.shtml
26 28
 	do
... ...
@@ -10,7 +10,7 @@
10 10
 
11 11
 case "$1" in
12 12
 	"en") . /htdocs/libertybsd.net/http/res/lang/en.sh ;;
13
-	"es") . /htdocs/libertybsd.net/http/res/lang/en.sh ;;
13
+	"es") . /htdocs/libertybsd.net/http/res/lang/es.sh ;;
14 14
 	"eo") . /htdocs/libertybsd.net/http/res/lang/eo.sh ;;
15 15
 esac
16 16
 
... ...
@@ -5,7 +5,7 @@
5 5
 <table border=2>
6 6
 	<tr>
7 7
 		<td><a href="https://en.libertybsd.net">English</a></td>
8
-<!--		<td><a href="https://es.libertybsd.net">Español</a></td>-->
8
+		<td><a href="https://es.libertybsd.net">Español</a></td>
9 9
 		<td><a href="https://eo.libertybsd.net">Esperanto</a></td>
10 10
 	</tr>
11 11
 </table>