/[MITgcm]/MITgcm/tools/xmakedepend
ViewVC logotype

Diff of /MITgcm/tools/xmakedepend

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2 by adcroft, Fri Sep 26 15:31:49 2003 UTC revision 1.7 by jahn, Mon Mar 15 22:06:20 2010 UTC
# Line 1  Line 1 
1  #!/bin/sh  #! /usr/bin/env sh
2  #  #
3  # $TOG: mdepend.cpp /main/13 1997/06/20 21:12:18 kaleb $  # $TOG: mdepend.cpp /main/13 1997/06/20 21:12:18 kaleb $
4  #  #
# Line 25  Line 25 
25  # $XFree86: xc/config/util/mdepend.cpp,v 3.2 1997/06/29 07:54:20 dawes Exp $  # $XFree86: xc/config/util/mdepend.cpp,v 3.2 1997/06/29 07:54:20 dawes Exp $
26  #  #
27    
28  CPPARGS="-traditional -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE  -D_GNU_SOURCE  "  CPPARGS="-Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE  -D_GNU_SOURCE  "
29  CC="/lib/cpp $CPPARGS"  
30    CC="cpp $CPPARGS"
31    if test -x /lib/cpp ; then
32        CC="/lib/cpp $CPPARGS"
33    fi
34    
35  silent='-'  silent='-'
36    
# Line 166  if [ "$verbose"x = "y"x ]; then Line 170  if [ "$verbose"x = "y"x ]; then
170      cat $CPPCMD      cat $CPPCMD
171  fi  fi
172    
173    cat $CPPCMD
174    
175    
176  echo '' > $DEPENDLINES  echo '' > $DEPENDLINES
177  for i in $files  for i in $files
178  do  do
179      $CPPCMD $i       | sed -n "/^#/s;^;$i ;p"      $CPPCMD $i       | sed -n "/^#/s;^;$i ;p"
180    
181  done   | sed -e 's|/[^/.][^/]*/\.\.||g' -e 's|/\.[^.][^/]*/\.\.||g'     -e 's|"||g' -e 's| \./| |'   | awk '{  done   | sed -e 's|/[^/.][^/]*/\.\.||g' -e 's|/\.[^.][^/]*/\.\.||g'     -e 's|"||g' -e 's| \./| |'   | awk '!/<.*>/{
182          if ($1 != $4  &&  $2 != "#ident" && $2 != "#pragma")          if ($1 != $4  &&  $2 != "#ident" && $2 != "#pragma")
183    
184    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.22