]> git.eshelyaron.com Git - emacs.git/commitdiff
* Makefile.in: Escape literal asterisks in regexps
authorMattias Engdegård <mattiase@acm.org>
Sat, 19 Nov 2022 11:29:46 +0000 (12:29 +0100)
committerMattias Engdegård <mattiase@acm.org>
Sat, 19 Nov 2022 11:34:25 +0000 (12:34 +0100)
Discovered by Po Lu.

Makefile.in

index 45b4a59e3db1ca1f1a308869407e219a2bdb8d19..66fa688feb24c652007dfa225aa0b361340f04ee 100644 (file)
@@ -410,7 +410,7 @@ advice-on-failure:
        @echo >&2 '***'
        @cat Makefile | \
          sed -n '/^# ADVICE-ON-FAILURE-BEGIN:${make-target}/,$${p;/^# ADVICE-ON-FAILURE-END:${make-target}/q};' | \
-         sed 's/^# /*** /' | grep -v '^*** ADVICE-ON-FAILURE-' >&2
+         sed 's/^# /*** /' | grep -v '^\*\*\* ADVICE-ON-FAILURE-' >&2
        @echo >&2 '***'
        @exit ${exit-status}
 
@@ -424,7 +424,7 @@ sanity-check:
        echo >&2 '***'; \
        cat Makefile | \
          sed -n '/^# ADVICE-ON-FAILURE-BEGIN:${make-target}/,$${p;/^# ADVICE-ON-FAILURE-END:${make-target}/q};' | \
-         sed 's/^# /*** /' | grep -v '^*** ADVICE-ON-FAILURE-' >&2; \
+         sed 's/^# /*** /' | grep -v '^\*\*\* ADVICE-ON-FAILURE-' >&2; \
        echo >&2 '***'; \
        exit 1