mirror of
git://git.sv.gnu.org/autoconf
synced 2025-01-30 11:01:45 +08:00
* acgeneral.m4 (AC_SHELL_DIRNAME): The sed fall back was producing
twice the output for it was not using `-n' and used `p'. Remove the latter.
This commit is contained in:
parent
1cc2c50bf6
commit
27366d34e5
@ -1,3 +1,9 @@
|
||||
2000-10-25 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* acgeneral.m4 (AC_SHELL_DIRNAME): The sed fall back was producing
|
||||
twice the output for it was not using `-n' and used `p'. Remove
|
||||
the latter.
|
||||
|
||||
2000-10-25 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* acgeneral.m4 (_AC_INIT_PREPARE_FDS): Give some information on
|
||||
|
10
acgeneral.m4
10
acgeneral.m4
@ -927,11 +927,11 @@ define([AC_SHELL_DIRNAME],
|
||||
X[]$1 : 'X\(/\)' \| \
|
||||
. : '\(.\)' 2>/dev/null ||
|
||||
echo "X[]$1" |
|
||||
sed ['/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/p; q; }
|
||||
/^X\(\/\/\)[^/].*/{ s//\1/p; q; }
|
||||
/^X\(\/\/\)$/{ s//\1/p; q; }
|
||||
/^X\(\/\).*/{ s//\1/p; q; }
|
||||
s/.*/./p; q']])
|
||||
sed ['/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
||||
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
||||
/^X\(\/\/\)$/{ s//\1/; q; }
|
||||
/^X\(\/\).*/{ s//\1/; q; }
|
||||
s/.*/./; q']])
|
||||
|
||||
|
||||
## --------------------------------------------------- ##
|
||||
|
@ -927,11 +927,11 @@ define([AC_SHELL_DIRNAME],
|
||||
X[]$1 : 'X\(/\)' \| \
|
||||
. : '\(.\)' 2>/dev/null ||
|
||||
echo "X[]$1" |
|
||||
sed ['/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/p; q; }
|
||||
/^X\(\/\/\)[^/].*/{ s//\1/p; q; }
|
||||
/^X\(\/\/\)$/{ s//\1/p; q; }
|
||||
/^X\(\/\).*/{ s//\1/p; q; }
|
||||
s/.*/./p; q']])
|
||||
sed ['/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
||||
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
||||
/^X\(\/\/\)$/{ s//\1/; q; }
|
||||
/^X\(\/\).*/{ s//\1/; q; }
|
||||
s/.*/./; q']])
|
||||
|
||||
|
||||
## --------------------------------------------------- ##
|
||||
|
Loading…
Reference in New Issue
Block a user