From 548e62be073aa5a7b39d5826cd72681daef7c6a1 Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Mon, 28 Dec 2020 15:48:35 +0100 Subject: configure: simplify the final printing of the configuration Factor out the substitution of `$prefix` for `\$(PREFIX)` using a shell function `expandprefix`. --- configure | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'configure') diff --git a/configure b/configure index b0d57823..ac41ab56 100755 --- a/configure +++ b/configure @@ -803,10 +803,9 @@ Please finish the configuration by editing file ./Makefile.config. EOF else -bindirexp=`echo "$bindir" | sed -e "s|\\\$(PREFIX)|$prefix|"` -libdirexp=`echo "$libdir" | sed -e "s|\\\$(PREFIX)|$prefix|"` -mandirexp=`echo "$mandir" | sed -e "s|\\\$(PREFIX)|$prefix|"` -coqdevdirexp=`echo "$coqdevdir" | sed -e "s|\\\$(PREFIX)|$prefix|"` +expandprefix() { + echo "$1" | sed -e "s|\\\$(PREFIX)|$prefix|" +} cat <