Mercurial > hg
comparison contrib/buildrpm @ 8906:bb255fe7c27e
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
author | Stefano Tortarolo <stefano.tortarolo@gmail.com> |
---|---|
date | Tue, 23 Jun 2009 14:14:48 +0200 |
parents | d244ee52ac30 |
children | ce145bf2ca5e |
comparison
equal
deleted
inserted
replaced
8905:68decbcb12cf | 8906:bb255fe7c27e |
---|---|
49 -e 's,^%setup.*,,' \ | 49 -e 's,^%setup.*,,' \ |
50 $specfile > $tmpspec | 50 $specfile > $tmpspec |
51 | 51 |
52 cat <<EOF >> $tmpspec | 52 cat <<EOF >> $tmpspec |
53 %changelog | 53 %changelog |
54 * `date +'%a %b %d %Y'` `$HG showconfig ui.username` $version-$release | 54 * `LANG=en_US date +'%a %b %d %Y'` `$HG showconfig ui.username` $version-$release |
55 - Automatically built via $0 | 55 - Automatically built via $0 |
56 | 56 |
57 EOF | 57 EOF |
58 $HG log \ | 58 $HG log \ |
59 --template '* {date|rfc822date} {author}\n- {desc|firstline}\n\n' \ | 59 --template '* {date|rfc822date} {author}\n- {desc|firstline}\n\n' \ |