From 96d4e688f405585b95350e1bed0f813340979e58 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 17 Aug 2016 18:16:52 +0900 Subject: [PATCH] macros.ghc-extra: quote the sed expressions harder --- macros.ghc-extra | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/macros.ghc-extra b/macros.ghc-extra index adadc53..51433c1 100644 --- a/macros.ghc-extra +++ b/macros.ghc-extra @@ -61,8 +61,8 @@ This package provides the Haskell %{pkgname} library development files.\ HOME=$PWD\ %define cabal_configure_options --user\ for i in %*; do\ -name=$(echo $i | sed -e "s/\(.*\)-.*/\1/")\ -ver=$(echo $i | sed -e "s/.*-\(.*\)/\1/")\ +name=$(echo $i | sed -e "s/\\(.*\\)-.*/\\1/")\ +ver=$(echo $i | sed -e "s/.*-\\(.*\\)/\\1/")\ cd $name-$ver\ case $name in\ haskell-platform)\ @@ -81,8 +81,8 @@ done\ %ghc_sublib_install()\ HOME=$PWD\ for i in %*; do\ -name=$(echo $i | sed -e "s/\(.*\)-.*/\1/")\ -ver=$(echo $i | sed -e "s/.*-\(.*\)/\1/")\ +name=$(echo $i | sed -e "s/\\(.*\\)-.*/\\1/")\ +ver=$(echo $i | sed -e "s/.*-\\(.*\\)/\\1/")\ cd $name-$ver\ %ghc_lib_install $name $ver\ echo "%%license $name-$ver/LICENSE" >> ghc-$name.files\