contrib/buildrpm: force en_US locale during changelog's creation
authorStefano Tortarolo <stefano.tortarolo@gmail.com>
Tue, 23 Jun 2009 14:14:48 +0200
changeset 8906 bb255fe7c27e
parent 8905 68decbcb12cf
child 8907 e9ef409e6399
contrib/buildrpm: force en_US locale during changelog's creation Running this script using a different locale (i.e., Italian) returns an error: $ ./contrib/buildrpm sto aggiornando la directory di lavoro 1060 file aggiornati, 0 file merge, 0 file rimossi, 0 file non risolti errore: data errata in %changelog: mar giu 23 2009 Stefano Tortarolo <stefano.tortarolo@gmail.com> 1.2.1-1034
contrib/buildrpm
--- a/contrib/buildrpm	Tue Jun 23 14:12:17 2009 +0200
+++ b/contrib/buildrpm	Tue Jun 23 14:14:48 2009 +0200
@@ -51,7 +51,7 @@
 
 cat <<EOF >> $tmpspec
 %changelog
-* `date +'%a %b %d %Y'` `$HG showconfig ui.username` $version-$release
+* `LANG=en_US date +'%a %b %d %Y'` `$HG showconfig ui.username` $version-$release
 - Automatically built via $0
 
 EOF