mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-11-21 01:40:57 +08:00
general.m4sh: relative path to the same directory is `.'.
* general.m4sh (func_relative_path): We sometimes want to use the result of this function directly, rather than purely as a prefix, so we need to return `.' when both directories end up at the same location. Signed-off-by: Gary V. Vaughan <gary@gnu.org>
This commit is contained in:
parent
0f5df1ceef
commit
65f9e9a2e5
@ -271,12 +271,13 @@ func_relative_path ()
|
||||
func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
|
||||
fi
|
||||
|
||||
# Normalisation. If bindir is libdir, return empty string,
|
||||
# else relative path.
|
||||
# Normalisation. If bindir is libdir, return `.' else relative path.
|
||||
if test ! -z "$func_relative_path_result"; then
|
||||
func_stripname './' '' "$func_relative_path_result"
|
||||
func_relative_path_result=$func_stripname_result
|
||||
fi
|
||||
|
||||
test -n "$func_relative_path_result" || func_relative_path_result=.
|
||||
}
|
||||
|
||||
# The name of this program:
|
||||
|
Loading…
Reference in New Issue
Block a user