summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/g++dep28
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