automatically fix mirrors.wml when converting translations
Runa A. Sandvik

Runa A. Sandvik commited on 2010-09-04 23:08:37
Zeige 1 geänderte Dateien mit 7 Einfügungen und 0 Löschungen.

... ...
@@ -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
 
113 120