[or-cvs] r23132: {website} automatically fix mirrors.wml when converting translations (website/trunk)

Runa Sandvik runa.sandvik at gmail.com
Sat Sep 4 21:08:37 UTC 2010


Author: runa
Date: 2010-09-04 21:08:37 +0000 (Sat, 04 Sep 2010)
New Revision: 23132

Modified:
   website/trunk/po2wml.sh
Log:
automatically fix mirrors.wml when converting translations

Modified: website/trunk/po2wml.sh
===================================================================
--- website/trunk/po2wml.sh	2010-09-04 20:11:09 UTC (rev 23131)
+++ website/trunk/po2wml.sh	2010-09-04 21:08:37 UTC (rev 23132)
@@ -107,6 +107,13 @@
 
 			# Include foot.wmi
 			echo "#include <foot.wmi>" >> "$wmldir/$subdir/$wmlfile"
+
+			# If the file is mirrors.wml, include mirrors-table.wmi
+			if [ $wmlfile == "mirrors.wml" ]
+			then
+				sed -i 's/<!--PO4ASHARPBEGIN/#/' "$wmldir/$subdir/$wmlfile"
+				sed -i 's/PO4ASHARPEND-->//' "$wmldir/$subdir/$wmlfile"
+			fi
 		fi
 	}	
 



More information about the tor-commits mailing list