Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1585
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 ; }