summaryrefslogtreecommitdiff
path: root/admin/quick-install-emacs
diff options
context:
space:
mode:
Diffstat (limited to 'admin/quick-install-emacs')
-rwxr-xr-xadmin/quick-install-emacs7
1 files changed, 4 insertions, 3 deletions
diff --git a/admin/quick-install-emacs b/admin/quick-install-emacs
index 2b52a864aec..88f57b65e80 100755
--- a/admin/quick-install-emacs
+++ b/admin/quick-install-emacs
@@ -159,11 +159,12 @@ fi
CONFIG_STATUS="$BUILD/config.status"
get_config_var ()
{
- if ! sed -n "s/^s\(.\)@$1@\1\(|#_!!_#|\)*\(.*\)\1.*$/\3/p" $CONFIG_STATUS | sed q | grep ''
- then
+ { sed -n "s/^S[[]\"$1\"[]]=\"\([^\"]*\)\"/\1/p" $CONFIG_STATUS | sed q | grep ''; } ||
+ { sed -n "s/^s\(.\)@$1@\1\(|#_!!_#|\)*\(.*\)\1.*$/\3/p" $CONFIG_STATUS | sed q | grep ''; } ||
+ {
echo 1>&2 "$me: $1: Configuration variable not found in $CONFIG_STATUS"
exit 4
- fi
+ }
}
test x"$SRC" = x && { SRC="`get_config_var srcdir`" || exit 4 ; }