summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-07-19 17:32:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-07-19 23:55:58 +0200
commitcfab695d0e3bd5889cfa4b6e81300dd11d4eef72 (patch)
tree73d7e1544398a004d31e586c496043a19a05d175 /Makefile.in
parentUsing empty which range makes no sense here (diff)
downloadcore-cfab695d0e3bd5889cfa4b6e81300dd11d4eef72.tar.gz
core-cfab695d0e3bd5889cfa4b6e81300dd11d4eef72.zip
Avoid bash'ism (comment in line continuation)
bash appears to remove comments only up to the next line-continuation backslash/newline pair, while SUS mandates that the "<backslash> and <newline> shall be removed before splitting the input into tokens", and at least zsh 5.8 follows that interpretation and thus complained about a `then` not followed by a `fi` Change-Id: Ifedb002f133a7bc4f79bb9bec3e8c97ccc704aaa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119227 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index f9a2644e569a..a2b34f80088a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -58,9 +58,10 @@ else # MAKE_RESTARTS
.DEFAULT_GOAL := build
+# Nested test is to check if the systemd-detect-virt command doesn't exist or it reports we're not
+# in a container:
check-if-root:
@if test ! `uname` = 'Haiku' -a `id -u` = 0; then \
- # if the systemd-detect-virt command doesn't exist or it reports we're not in a container \
if test ! -x "$$(command -v systemd-detect-virt)" || ! systemd-detect-virt -c -q; then \
echo; \
echo 'Building LibreOffice as root is a very bad idea, use a regular user.'; \