rever to fix broken path handling on ms-windows

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@25844 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2008-01-03 14:47:40 +00:00
parent caddb4a49f
commit 1f915012f7
2 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2008-01-03 Richard Frith-Macdonald <rfm@gnu.org>
* relative_path.sh: Revert previous change as it broke the use of
relative paths within the configuration system ... critical for
ms-windows systems where relative paths are used by default!
2008-01-01 Adam Fedor <fedor@gnu.org>
* Version 2.0.3 (on stable branch).

View file

@ -147,11 +147,16 @@ if [ -z "$a" ]; then
fi
# Now add as many ../ as there are components in a
# NB. If result was a single dot (current directory) then we need to
# retain it so we have a path of the form './xxx' since the leading
# './' is required to tell our software to prepend the location of
# the config file to the relative path in order to obtain an absolute
# path.
tmp_IFS="$IFS"
IFS=/
for component in $a; do
if [ -n "$component" -a "$component" != "." ]; then
if [ "$result" = "." ]; then
if [ -z "$result" ]; then
result=".."
else
result="$result/.."