Skip to content

Commit

Permalink
m4: fix output alignment in gettext domain check
Browse files Browse the repository at this point in the history
Increase the field width from 7 to 8 characters just like
the other AM_V_* messages.

Also use MAKE_TIME_DOMAIN shell var everywhere.
  • Loading branch information
ndim committed Sep 20, 2024
1 parent c9e2eb5 commit 18b9109
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libgphoto2_port/gphoto-m4/gp-gettext-setup.m4
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ cat >>${GP_GETTEXT_SETUP_MK} <<EOF
MAKEVARS_FILE="\$\$(test -f '$3/Makevars' || echo '\$(srcdir)/')$3/Makevars"; \\
MAKEVARS_DOMAIN="\$\$(\$(SED) -n 's/^DOMAIN \\{0,\\}= \\{0,\\}//p' "\$\$MAKEVARS_FILE")"; \\
MAKE_TIME_DOMAIN="\$($1)"; \\
if test "x\$\$MAKEVARS_DOMAIN" = "x\$($1)"; then \\
if \$(AM_V_P); then printf " %-7s %s\n" CHECK "Good: Matching gettext domain values (\$($1))"; fi; \\
if test "x\$\$MAKEVARS_DOMAIN" = "x\$\$MAKE_TIME_DOMAIN"; then \\
if \$(AM_V_P); then printf " %-8s %s\n" CHECK "Good: Matching gettext domain values (\$\${MAKE_TIME_DOMAIN})"; fi; \\
true; \\
elif test "x\$\$USE_NLS" = xyes; then \\
printf " %-7s %s\n" CHECK "Error: Mismatching gettext domain values (\$($1) vs \$\${MAKEVARS_DOMAIN})"; \\
printf " %-8s %s\n" CHECK "Error: Mismatching gettext domain values (\$\${MAKE_TIME_DOMAIN}) vs \$\${MAKEVARS_DOMAIN})"; \\
false; \\
else \\
printf " %-7s %s\n" CHECK "Warning: Mismatching gettext domain values (\$($1) vs \$\${MAKEVARS_DOMAIN})"; \\
printf " %-8s %s\n" CHECK "Warning: Mismatching gettext domain values (\$\${MAKE_TIME_DOMAIN}) vs \$\${MAKEVARS_DOMAIN})"; \\
true; \\
fi
EOF
Expand Down

0 comments on commit 18b9109

Please sign in to comment.