]> git.eshelyaron.com Git - emacs.git/commitdiff
Make sed invocation in Makefile POSIX-compliant
authorGregory Heytings <gregory@heytings.org>
Mon, 21 Nov 2022 12:44:13 +0000 (12:44 +0000)
committerGregory Heytings <gregory@heytings.org>
Mon, 21 Nov 2022 12:47:06 +0000 (13:47 +0100)
* Makefile.in: Add a semicolon before the closing brace, which is
required by POSIX.  Fixes bug#59444.

Makefile.in

index 3109472a8aae84127c399feea393de8e4def432f..93609a4e1663a654979c4f8e5a94f24a3795319a 100644 (file)
@@ -410,7 +410,7 @@ advice-on-failure:
        @echo >&2 '*** '"\"make ${make-target}\" failed with exit status ${exit-status}."
        @echo >&2 '***'
        @cat Makefile | \
-         sed -n '/^# ADVICE-ON-FAILURE-BEGIN:${make-target}/,$${p;/^# ADVICE-ON-FAILURE-END:${make-target}/q};' | \
+         sed -n '/^# ADVICE-ON-FAILURE-BEGIN:${make-target}/,$${p;/^# ADVICE-ON-FAILURE-END:${make-target}/q;};' | \
          sed 's/^# /*** /' | grep -v '^\*\*\* ADVICE-ON-FAILURE-' >&2
        @echo >&2 '***'
        @exit ${exit-status}
@@ -425,7 +425,7 @@ sanity-check:
        echo >&2 '*** '"\"make ${make-target}\" succeeded, but Emacs is not functional."; \
        echo >&2 '***'; \
        cat Makefile | \
-         sed -n '/^# ADVICE-ON-FAILURE-BEGIN:${make-target}/,$${p;/^# ADVICE-ON-FAILURE-END:${make-target}/q};' | \
+         sed -n '/^# ADVICE-ON-FAILURE-BEGIN:${make-target}/,$${p;/^# ADVICE-ON-FAILURE-END:${make-target}/q;};' | \
          sed 's/^# /*** /' | grep -v '^\*\*\* ADVICE-ON-FAILURE-' >&2; \
        echo >&2 '***'; \
        exit 1