/[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.5 Revision 1.6
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.5 2002/11/18 15:15:08 azarah Exp $ 4# $Header: /var/cvsroot/gentoo-src/rc-scripts/src/awk/cachedepends.awk,v 1.6 2002/11/25 22:24:08 azarah Exp $
5 5
6function print_start() { 6function print_start() {
7 print "need() {" >> (DEPCACHE) 7 print "need() {" >> (DEPCACHE)
8 print " echo \"NEED $*\"; return 0" >> (DEPCACHE) 8 print " echo \"NEED $*\"; return 0" >> (DEPCACHE)
9 print "}" >> (DEPCACHE) 9 print "}" >> (DEPCACHE)
101 continue 101 continue
102 } 102 }
103 } 103 }
104 104
105 # Filter out comments and only process if its a rcscript 105 # Filter out comments and only process if its a rcscript
106 if (($0 !~ /[[:space:]]*#/) && (ISRCSCRIPT == 1 )) { 106 if (($0 !~ /^[[:space:]]*#/) && (ISRCSCRIPT == 1 )) {
107 107
108 # If line contain 'depend()', set GOTDEPEND to 1 108 # If line contain 'depend()', set GOTDEPEND to 1
109 if ($0 ~ /depend[[:space:]]*\(\)/) 109 if ($0 ~ /depend[[:space:]]*\(\)/)
110 GOTDEPEND = 1 110 GOTDEPEND = 1
111 111

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20