diff options
author | Chris Cleeland <chris.cleeland@gmail.com> | 2002-07-22 21:58:00 +0000 |
---|---|---|
committer | Chris Cleeland <chris.cleeland@gmail.com> | 2002-07-22 21:58:00 +0000 |
commit | 0270ecad2808ca2afad1be32970d2f37e9e29cca (patch) | |
tree | 32c3bdd1fa6943a8f3b6e1b3819eb8b278b33af6 | |
parent | d717ad55fcaa377d7539893e3736917ceeb6a3b3 (diff) | |
download | ATCD-0270ecad2808ca2afad1be32970d2f37e9e29cca.tar.gz |
Mon Jul 22 16:57:19 2002 Chris Cleeland <cleeland_c@ociweb.com>
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ChangeLogs/ChangeLog-03a | 6 | ||||
-rwxr-xr-x | bin/g++dep | 14 |
3 files changed, 26 insertions, 0 deletions
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 <cleeland_c@ociweb.com> + + * 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 <shuston@riverace.com> * 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 <cleeland_c@ociweb.com> + + * 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 <shuston@riverace.com> * 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 |