Use a more portable syntax for subcommands (xxx rather than $(xxx));

fixed case of paths with no common path in common


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@13848 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2002-06-12 12:55:29 +00:00
parent b82b680344
commit 4aa67de2e7

View file

@ -98,10 +98,12 @@ for component in $b; do
done
IFS="$tmp_IFS"
# Now partial_match is the substring which matches (/xxx/yyy/) in the
# example. Remove it from both a and b.
a=$(echo $a | sed -e "s#$partial_match##")
b=$(echo $b | sed -e "s#$partial_match##")
if [ "$partial_match" != "" ]; then
# Now partial_match is the substring which matches (/xxx/yyy/) in the
# example. Remove it from both a and b.
a=`echo $a | sed -e "s#$partial_match##"`
b=`echo $b | sed -e "s#$partial_match##"`
fi
# Ok - now ready to build the result
result=""