/[gentoo-src]/rc-scripts/src/awk/cachedepends.awk
Gentoo

Diff of /rc-scripts/src/awk/cachedepends.awk

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

Revision 1.1 Revision 1.2
1# Copyright 1999-2002 Gentoo Technologies, Inc. 1# Copyright 1999-2002 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License, v2 2# Distributed under the terms of the GNU General Public License, v2
3# Author: Martin Schlemmer <azarah@gentoo.org> 3# Author: Martin Schlemmer <azarah@gentoo.org>
4# $Header: /var/cvsroot/gentoo-src/rc-scripts/src/awk/cachedepends.awk,v 1.1 2002/11/17 17:11:09 azarah Exp $ 4# $Header: /var/cvsroot/gentoo-src/rc-scripts/src/awk/cachedepends.awk,v 1.2 2002/11/17 19:33:01 azarah Exp $
5 5
6BEGIN { 6BEGIN {
7 7
8 extension("/lib/rcscripts/filefuncs.so", "dlload") 8 extension("/lib/rcscripts/filefuncs.so", "dlload")
9 9
67 ISRCSCRIPT = 1 67 ISRCSCRIPT = 1
68 68
69 print_header() 69 print_header()
70 } else 70 } else
71 nextfile 71 nextfile
72
73 # Do not process scripts, source or backup files
74 if (FILENAME ~ /((\.(sh|c|bak))|\~)$/)
75 nextfile
72 } 76 }
73 77
74 # Filter out comments and only process if its a rcscript 78 # Filter out comments and only process if its a rcscript
75 if (($0 !~ /[[:space:]]*#/) && (ISRCSCRIPT == 1 )) { 79 if (($0 !~ /[[:space:]]*#/) && (ISRCSCRIPT == 1 )) {
76 80
101 ISRCSCRIPT = 0 105 ISRCSCRIPT = 0
102 COUNT = 0 106 COUNT = 0
103 SBCOUNT = 0 107 SBCOUNT = 0
104 108
105 print_end() 109 print_end()
110
111 nextfile
106 } 112 }
107 } 113 }
108 } 114 }
109} 115}
110 116

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

  ViewVC Help
Powered by ViewVC 1.1.20