diff options
author | jxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-08-22 02:03:16 +0000 |
---|---|---|
committer | jxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-08-22 02:03:16 +0000 |
commit | 24fde4cef6a4fc44c717acfac9972d712e2c7931 (patch) | |
tree | 731f665ba7e5de7fe8458112a4c2cc117ac4a01f /bin | |
parent | bb6ca2c35e60fe8e19e4b4b32d14c3e383844a46 (diff) | |
download | ATCD-24fde4cef6a4fc44c717acfac9972d712e2c7931.tar.gz |
*** empty log message ***
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/g++dep | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/bin/g++dep b/bin/g++dep index e65c813c896..2cde4d97b1d 100755 --- a/bin/g++dep +++ b/bin/g++dep @@ -31,9 +31,11 @@ case $1 in -r) REL="-e s;$ACE_ROOT;\$(ACE_ROOT);g " if [ ${TAO_ROOT:-no_tao_root} = "no_tao_root" ] - then : + then + echo no TAO_ROOT else REL="-e s;$TAO_ROOT;\$(TAO_ROOT);g "$REL + echo REL=$REL fi shift ;; esac @@ -57,22 +59,14 @@ cat << _EOF_ >> $TMP _EOF_ -gcc -MM $* | sed -e "s; \./; ;g" $SED $REL | \ - awk ' { \ - if ($1 != prev) { \ - if (rec != "") \ - print rec; rec = $0; prev = $1; \ - } \ - else { \ - if (length(rec $2) > 78) { \ - print rec; rec = $0; \ - } else \ - rec = rec " " $2 \ - } \ - } \ - END { \ - print rec \ - } ' >> $TMP +gcc -MM $* \ +| sed -e "s; \./; ;g" $SED $REL \ +| awk '{ if ($1 != prev) \ + { if (rec != "") print rec; rec = $0; prev = $1; } \ + else \ + { if (length(rec $2) > 78) { print rec; rec = $0; } \ + else rec = rec " " $2 } } \ +END { print rec }' >> $TMP cat << _EOF_ >> $TMP |