Browse code

automatically fix mirrors.wml when converting translations

Runa A. Sandvik authored on04/09/2010 23:08:37
Showing1 changed files
... ...
@@ -107,6 +107,13 @@ for file in $po ; do
107 107
 
108 108
 			# Include foot.wmi
109 109
 			echo "#include <foot.wmi>" >> "$wmldir/$subdir/$wmlfile"
110
+
111
+			# If the file is mirrors.wml, include mirrors-table.wmi
112
+			if [ $wmlfile == "mirrors.wml" ]
113
+			then
114
+				sed -i 's/<!--PO4ASHARPBEGIN/#/' "$wmldir/$subdir/$wmlfile"
115
+				sed -i 's/PO4ASHARPEND-->//' "$wmldir/$subdir/$wmlfile"
116
+			fi
110 117
 		fi
111 118
 	}	
112 119