libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

No need to prepend $progname with './'.


From: Ralf Wildenhues
Subject: No need to prepend $progname with './'.
Date: Sun, 23 Nov 2008 14:50:15 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

The new $ECHO allows for this simplification, pushed.

Cheers,
Ralf

    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.

diff --git a/libltdl/config/general.m4sh b/libltdl/config/general.m4sh
index ce80241..59e6b27 100644
--- a/libltdl/config/general.m4sh
+++ b/libltdl/config/general.m4sh
@@ -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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]