[Tux4kids-commits] r1587 - tuxmath/trunk/data/menus

David Bruce dbruce-guest at alioth.debian.org
Mon Oct 12 23:38:38 UTC 2009


Author: dbruce-guest
Date: 2009-10-12 23:38:38 +0000 (Mon, 12 Oct 2009)
New Revision: 1587

Modified:
   tuxmath/trunk/data/menus/update-po.sh
Log:
better sed script for extraction of menu strings



Modified: tuxmath/trunk/data/menus/update-po.sh
===================================================================
--- tuxmath/trunk/data/menus/update-po.sh	2009-10-12 20:00:35 UTC (rev 1586)
+++ tuxmath/trunk/data/menus/update-po.sh	2009-10-12 23:38:38 UTC (rev 1587)
@@ -6,4 +6,4 @@
 # NOTE this script needs to be kept in the same dir as the menu files
 
 rm -f ./menu_strings
-sed -n /title/p main_menu.xml | sed 's/^.*title=/_(/g' | sed 's/\" .*/\")/gw menu_strings'
\ No newline at end of file
+sed -n 's/^.*title=\("[^"]*"\).*$/_(\1)/p' main_menu.xml | sort | uniq > menu_strings




More information about the Tux4kids-commits mailing list