* 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:
Akim Demaille 2000-10-25 10:25:15 +00:00
parent 1cc2c50bf6
commit 27366d34e5
3 changed files with 16 additions and 10 deletions

View File

@ -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

View File

@ -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']])
## --------------------------------------------------- ##

View File

@ -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']])
## --------------------------------------------------- ##