--- MITgcm/tools/xmakedepend 2010/03/15 22:06:20 1.7 +++ MITgcm/tools/xmakedepend 2010/03/16 00:59:38 1.8 @@ -1,5 +1,8 @@ #! /usr/bin/env sh # +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/xmakedepend,v 1.8 2010/03/16 00:59:38 jmc Exp $ +# $Name: $ +# # $TOG: mdepend.cpp /main/13 1997/06/20 21:12:18 kaleb $ # # Do the equivalent of the 'makedepend' program, but do it right. @@ -166,13 +169,10 @@ ;; esac -if [ "$verbose"x = "y"x ]; then +if [ "$verbose"x = "y"x ]; then cat $CPPCMD fi -cat $CPPCMD - - echo '' > $DEPENDLINES for i in $files do @@ -181,8 +181,6 @@ done | sed -e 's|/[^/.][^/]*/\.\.||g' -e 's|/\.[^.][^/]*/\.\.||g' -e 's|"||g' -e 's| \./| |' | awk '!/<.*>/{ if ($1 != $4 && $2 != "#ident" && $2 != "#pragma") - - { ofile = substr ($1, 1, length ($1) - 2) "'"$objsuffix"'" print ofile, $4 @@ -252,7 +250,6 @@ $TMPMAKEFILE) cat $TMPMAKEFILE ;; - esac rm -f ${TMP}*