[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU Libtool branch, master, updated. v2.4.2-357-g820e373
From: |
Peter Rosin |
Subject: |
[SCM] GNU Libtool branch, master, updated. v2.4.2-357-g820e373 |
Date: |
Wed, 09 Jan 2013 12:31:34 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".
The branch, master has been updated
via 820e373cf2521e553db409e87c4ccc5e6cc4b074 (commit)
from 66acec8407935f13aad5ab7f86a0ec8e9ec0f8ce (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 820e373cf2521e553db409e87c4ccc5e6cc4b074
Author: Peter Rosin <address@hidden>
Date: Wed Jan 9 12:58:55 2013 +0100
tests: fix nits in path handling
tests/bindir.at: func_save_and_prepend_path is already checking
$bindirneeded internally, so remove checks from call sites. Add
proper quoting while at it.
(func_save_and_prepend_path): Use $PATH_SEPARATOR instead of a literal
colon (in both instances).
Signed-off-by: Peter Rosin <address@hidden>
-----------------------------------------------------------------------
Summary of changes:
tests/bindir.at | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/tests/bindir.at b/tests/bindir.at
index 9786d08..cc9c24a 100644
--- a/tests/bindir.at
+++ b/tests/bindir.at
@@ -82,7 +82,7 @@ func_save_and_prepend_path ()
{
save_PATH=$PATH
if $bindirneeded; then
- PATH=$1:$PATH
+ PATH=$1$PATH_SEPARATOR$PATH
fi
export PATH
}
@@ -143,7 +143,7 @@ LT_AT_NOINST_EXEC_CHECK([./main])
# Ensure libraries can be found on PATH, if we are on one
# of the affected platforms, before testing the shared version.
-func_save_and_prepend_path $curdir/$objdir
+func_save_and_prepend_path "$curdir/$objdir"
$bindirneeded && {
LT_AT_NOINST_EXEC_CHECK([$objdir/main])
}
@@ -194,7 +194,7 @@ func_save_and_prepend_path ()
{
save_PATH=$PATH
if $bindirneeded; then
- PATH=$1:$PATH
+ PATH=$1$PATH_SEPARATOR$PATH
fi
export PATH
}
@@ -282,9 +282,7 @@ do
fi
# And that it can be executed.
- extrapath=
- $bindirneeded && extrapath=$libdir/../bin
- func_save_and_prepend_path $extrapath
+ func_save_and_prepend_path "$libdir/../bin"
LT_AT_EXEC_CHECK([$curdir/sbin/main$EXEEXT], [0], [ignore], [ignore], [])
func_restore_path
@@ -346,9 +344,7 @@ do
fi
# And that it can be executed.
- extrapath=
- $bindirneeded && extrapath=$bindir
- func_save_and_prepend_path $extrapath
+ func_save_and_prepend_path "$bindir"
LT_AT_EXEC_CHECK([$curdir/sbin/main$EXEEXT], [0], [ignore], [ignore], [])
func_restore_path
hooks/post-receive
--
GNU Libtool
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU Libtool branch, master, updated. v2.4.2-357-g820e373,
Peter Rosin <=