mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-03-13 15:46:55 +08:00
No need to prepend $progname with './'.
* libltdl/config/general.m4sh (func_dirname_and_basename): $ECHO copes with leading hyphens now, so do not mangle $progname any more. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
This commit is contained in:
parent
9c3d4d8f91
commit
f8c657da16
@ -1,5 +1,10 @@
|
||||
2008-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
No need to prepend $progname with './'.
|
||||
* libltdl/config/general.m4sh (func_dirname_and_basename): $ECHO
|
||||
copes with leading hyphens now, so do not mangle $progname any
|
||||
more.
|
||||
|
||||
Revenge of the $ECHO. Kill most uses of Xsed.
|
||||
* libltdl/config/general.m4sh: Replace all uses of `$ECHO "X..."
|
||||
| $Xsed' with `$ECHO "..." | $SED', and employ further trivial
|
||||
|
@ -101,13 +101,8 @@ func_dirname_and_basename ()
|
||||
# Generated shell functions inserted here.
|
||||
|
||||
# The name of this program:
|
||||
# In the unlikely event $progname began with a '-', it would play havoc with
|
||||
# func_echo (imagine progname=-n), so we prepend ./ in that case:
|
||||
func_dirname_and_basename "$progpath"
|
||||
progname=$func_basename_result
|
||||
case $progname in
|
||||
-*) progname=./$progname ;;
|
||||
esac
|
||||
|
||||
# Make sure we have an absolute path for reexecution:
|
||||
case $progpath in
|
||||
|
Loading…
x
Reference in New Issue
Block a user