From 63e6e932d7b50b2960534738bb51a6d16d2326a0 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 8 Apr 2021 12:22:24 +0800 Subject: [PATCH] %ghc_fix_doc_perms: quote backslashes in the regexp --- macros.ghc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros.ghc b/macros.ghc index 16c0456..bd8c190 100644 --- a/macros.ghc +++ b/macros.ghc @@ -127,7 +127,7 @@ fi\ # workaround Cabal bug causing executable extra-source-files %ghc_fix_doc_perms\ -for f in $(ls | grep -i -e "^\(ANNOUNCE\|AUTHORS\|CHANGELOG\|CHANGES\|CONTRIBUTORS\|README\|TODO\)"); do\ +for f in $(ls | grep -i -e '^\\(ANNOUNCE\\|AUTHORS\\|CHANGELOG\\|CHANGES\\|CONTRIBUTORS\\|README\\|TODO\\)'); do\ if [ -x $f ]; then chmod a-x $f; fi\ done\ %{nil}