mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 06:52:22 +03:00
990bb60a6f
The script does not use any bash features. On NixOS we have /bin/sh and /usr/bin/env for posix compatibility but not /bin/bash as it is stored in our nix store. With this change one can run the `meson configure` without patching which greatly helps, when working on upstream contributions.
13 lines
236 B
Bash
Executable File
13 lines
236 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# Fedora uses C.utf8 but Debian uses C.UTF-8
|
|
if locale -a | grep -xq -E 'C\.(utf8|UTF-8)'; then
|
|
echo 'C.UTF-8'
|
|
elif locale -a | grep -xqF 'en_US.utf8'; then
|
|
echo 'en_US.UTF-8'
|
|
else
|
|
echo 'C'
|
|
fi
|