libgweather r580 - trunk/po-locations
- From: danw svn gnome org
- To: svn-commits-list gnome org
- Subject: libgweather r580 - trunk/po-locations
- Date: Fri, 23 Jan 2009 14:25:36 +0000 (UTC)
Author: danw
Date: Fri Jan 23 14:25:36 2009
New Revision: 580
URL: http://svn.gnome.org/viewvc/libgweather?rev=580&view=rev
Log:
* regen.sh: if called with no arguments, just regen locations.pot.
For use by l10n.gnome.org. Patch from Claude Paroz. #563455
Modified:
trunk/po-locations/ChangeLog
trunk/po-locations/regen.sh
Modified: trunk/po-locations/regen.sh
==============================================================================
--- trunk/po-locations/regen.sh (original)
+++ trunk/po-locations/regen.sh Fri Jan 23 14:25:36 2009
@@ -1,10 +1,5 @@
#!/bin/sh
-if [ -z "$*" ]; then
- echo "Usage: $0 pofile [pofile...]" 1>&2
- exit 1
-fi
-
# Find a file called Locations.xml.in.h which is newer than both
# ../data/Locations.xml.in and extract.xsl, and if it's not found,
# build it. In other words, regenerate Locations.xml.in.h if it's
@@ -26,19 +21,21 @@
--keyword=N_ --keyword=NC_:1c,2 --no-location Locations.xml.in.h
}
-# Now rebuild po files given on command line
+# Now rebuild po files given on command line, if any
status=0
-for po in "$@"; do
- if [ -f $po ]; then
- echo "Rebuilding $po"
- msgmerge -U $po locations.pot
- elif [ -f $po.po ]; then
- echo "Rebuilding $po.po"
- msgmerge -U $po.po locations.pot
- else
- echo "No such file: $po" 1>&2
- status=1
- fi
-done
+if [ -n "$*" ]; then
+ for po in "$@"; do
+ if [ -f $po ]; then
+ echo "Rebuilding $po"
+ msgmerge -U $po locations.pot
+ elif [ -f $po.po ]; then
+ echo "Rebuilding $po.po"
+ msgmerge -U $po.po locations.pot
+ else
+ echo "No such file: $po" 1>&2
+ status=1
+ fi
+ done
+fi
exit $status
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]