From 0270ecad2808ca2afad1be32970d2f37e9e29cca Mon Sep 17 00:00:00 2001 From: Chris Cleeland Date: Mon, 22 Jul 2002 21:58:00 +0000 Subject: Mon Jul 22 16:57:19 2002 Chris Cleeland --- ChangeLog | 6 ++++++ ChangeLogs/ChangeLog-03a | 6 ++++++ bin/g++dep | 14 ++++++++++++++ 3 files changed, 26 insertions(+) diff --git a/ChangeLog b/ChangeLog index 36c44c4a8c7..aadf70fb963 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Jul 22 16:57:19 2002 Chris Cleeland + + * bin/g++dep: Added a -R option that allows you to specify a + variable which should be used to generate relative paths if it's + defined. + Mon Jul 22 17:45:48 2002 Steve Huston * ace/Get_Opt.h: Doxygen fixes. diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a index 36c44c4a8c7..aadf70fb963 100644 --- a/ChangeLogs/ChangeLog-03a +++ b/ChangeLogs/ChangeLog-03a @@ -1,3 +1,9 @@ +Mon Jul 22 16:57:19 2002 Chris Cleeland + + * bin/g++dep: Added a -R option that allows you to specify a + variable which should be used to generate relative paths if it's + defined. + Mon Jul 22 17:45:48 2002 Steve Huston * ace/Get_Opt.h: Doxygen fixes. diff --git a/bin/g++dep b/bin/g++dep index aa4a843cc24..226f7ef68d5 100755 --- a/bin/g++dep +++ b/bin/g++dep @@ -38,6 +38,20 @@ case $1 in REL="-e s;${TAO_ROOT:=$ACE_ROOT/TAO};\$(TAO_ROOT);g "$REL DO_ACE_MAKE_DEPEND=1 shift ;; + # -R VARNAME allows you to specify a variable which should be used + # to generate relative paths if it's defined. You can use multiple + # -R options, but be careful if one of the values is a proper + # subset of a subsequent value, because I suspect that sed will + # substitute for the first value properly, but not for the second. You might + # Be able to get around this by reordering and having the more specific + # values lead the less specific values. + -R) varname=$2 + eval "echo \$${varname}" >/tmp/$$.vv + varval=`eval cat /tmp/$$.vv`; rm /tmp/$$.vv + if [ -n "$varval" ]; then + REL="-e s;$varval;\$($varname);g "$REL + fi + shift; shift;; *) STOPNOW=1 esac done -- cgit v1.2.1