]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
po-man: fix quoting in comparision to skip nonexisting translations
authorThomas Weißschuh <thomas@t-8ch.de>
Fri, 5 May 2023 09:11:23 +0000 (11:11 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Sat, 6 May 2023 04:44:26 +0000 (06:44 +0200)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
po-man/Makefile.am

index 12d1e92ead93da2b7ac7fb444772c9e1c88f3c62..e9952a1f7ce846991742f9b209ef8f3bbe971acb 100644 (file)
@@ -43,7 +43,7 @@ gen-mans: gen-trans
          for l in $(PO_LANGS); do \
          gendir="$(abs_builddir)/$$l"; \
          genfiles=`echo $${gendir}/*.adoc`; \
-         if test "$$genfiles" != '$${gendir}/*.adoc'; then \
+         if test "$$genfiles" != "$${gendir}/*.adoc"; then \
            for file in $${genfiles}; do \
              manname=`echo $$file | sed -e 's|^.*/||' -e 's|\.adoc||'`;  \
              test -f $${gendir}/$${manname} || { \
@@ -68,7 +68,7 @@ install-data-local: gen-mans
          mansrcdir="$(abs_builddir)/$$l"; \
          for s in $(MAN_SECTIONS); do \
            installfiles=`echo $${mansrcdir}/*.$$s`; \
-           if test "$$installfiles" != '$${mansrcdir}/*.$$s'; then \
+           if test "$$installfiles" != "$${mansrcdir}/*.$$s"; then \
              installdir="$(DESTDIR)$(mandir)/$$l/man$$s"; \
              $(MKDIR_P) "$${installdir}" || exit 1; \
              for file in $$installfiles; do \
@@ -85,7 +85,7 @@ uninstall-local:
          mansrcdir="$(abs_builddir)/$$l"; \
          for s in $(MAN_SECTIONS); do \
            installfiles=`echo $${mansrcdir}/*.$$s`; \
-           if test "$$installfiles" != '$${mansrcdir}/*.$$s'; then \
+           if test "$$installfiles" != "$${mansrcdir}/*.$$s"; then \
              installdir="$(DESTDIR)$(mandir)/$$l/man$$s"; \
              for file in $$installfiles; do \
                manname=`echo $$file | sed -e 's|^.*/||'`;  \