aboutsummaryrefslogtreecommitdiff
path: root/generate-version.sh
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-08-25 19:11:29 +0200
committerDaniel Eklöf <daniel@ekloef.se>2021-08-25 19:11:29 +0200
commitcd6b39257050df2ed1def9d868547fe9742c16d5 (patch)
tree7b5aa65754c2830b872cd955e9bfecccd3939161 /generate-version.sh
parent6671844d7892ed57a34ee55d7e7f0824e35fcd8c (diff)
downloadwbg-cd6b39257050df2ed1def9d868547fe9742c16d5.tar.gz
meson: run generate_version.sh in a C locale
Previously, only the date command inside the script was run with LC_TIME=C. But there’s no reason to be that conservative; we absolutely do not want _anything_ in that script to generate locale dependent output.
Diffstat (limited to 'generate-version.sh')
-rwxr-xr-xgenerate-version.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/generate-version.sh b/generate-version.sh
index c77560a..e178b7e 100755
--- a/generate-version.sh
+++ b/generate-version.sh
@@ -17,7 +17,7 @@ if [ -d "${src_dir}/.git" ] && command -v git > /dev/null; then
git_branch=$(git rev-parse --abbrev-ref HEAD)
cd "${workdir}"
- new_version="${git_version} ($(env LC_TIME=C date "+%b %d %Y"), branch '${git_branch}')"
+ new_version="${git_version} ($(date "+%b %d %Y"), branch '${git_branch}')"
else
new_version="${default_version}"
fi