diff options
author | Roger Leigh <rleigh@debian.org> | 2010-02-20 23:21:32 +0000 |
---|---|---|
committer | Roger Leigh <rleigh@debian.org> | 2010-02-20 23:21:32 +0000 |
commit | 9ec1efc82d1ee38f4c89e0c247b010073cd57198 (patch) | |
tree | 524dd167df45a5d6ef8e6432f5f842a1d328c940 /scripts | |
parent | 35222c21717250b581c01b76f885e1986b5b04c5 (diff) | |
download | schroot-9ec1efc82d1ee38f4c89e0c247b010073cd57198.tar.gz |
build: Use LC_TIME=C for date formatting
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/git-version | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/git-version b/scripts/git-version index 1d6e83f1..6b36f102 100755 --- a/scripts/git-version +++ b/scripts/git-version @@ -1,5 +1,12 @@ #!/bin/sh +# date needs to use C for date (LC_TIME) formatting, so ensure it's +# not overridden. +export LANGUAGE=C +export LANG=C +export LC_TIME=C +export LC_ALL=C + PACKAGE="$(sed -ne '/^Welcome to /{s/Welcome to[[:space:]][[:space:]]*\([[:alnum:]][[:alnum:]]*\)[[:space:]][[:space:]]*\([[:alnum:]][[:alnum:].-]*\)\..*/\1/p;q}' < NEWS)" VERSION="$(sed -ne '/^Welcome to /{s/Welcome to[[:space:]][[:space:]]*\([[:alnum:]][[:alnum:]]*\)[[:space:]][[:space:]]*\([[:alnum:]][[:alnum:].-]*\)\..*/\2/p;q}' < NEWS)" |