diff options
author | wdlkmpx <wdlkmpx@gmail.com> | 2023-06-08 05:24:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-08 11:24:43 +0100 |
commit | 690b12f0005b66786a62f867daccb210e2390d2b (patch) | |
tree | 8aba25fb1fde038f32adfb82ba672e84a0f7b8fc /util/install_helper.sh | |
parent | 113ce78baaf0e0fd75da4eff7ff0e9a3f6ef4784 (diff) | |
download | libfuse-690b12f0005b66786a62f867daccb210e2390d2b.tar.gz |
util/meson.build: don't install udev.rules if udevdir cannot be determined (#801)
make the udev dependency optional
just show a big warning if `udevrulesdir` is empty
Diffstat (limited to 'util/install_helper.sh')
-rwxr-xr-x | util/install_helper.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/util/install_helper.sh b/util/install_helper.sh index 33f4a42..76f2b47 100755 --- a/util/install_helper.sh +++ b/util/install_helper.sh @@ -37,8 +37,10 @@ if $useroot; then fi fi -install -D -m 644 "${MESON_SOURCE_ROOT}/util/udev.rules" \ +if [ "${udevrulesdir}" != "" ]; then + install -D -m 644 "${MESON_SOURCE_ROOT}/util/udev.rules" \ "${DESTDIR}${udevrulesdir}/99-fuse3.rules" +fi if [ "$initscriptdir" != "" ]; then install -D -m 755 "${MESON_SOURCE_ROOT}/util/init_script" \ |