/[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.11 Revision 1.12
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 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.11 2003/05/21 08:00:55 azarah Exp $ 4# $Header: /var/cvsroot/gentoo-src/rc-scripts/src/awk/cachedepends.awk,v 1.12 2003/07/16 18:27:55 azarah Exp $
5 5
6function print_start() { 6function print_start() {
7 print "source /sbin/functions.sh" 7 print "source /sbin/functions.sh"
8 print "" 8 print ""
9 print "need() {" 9 print "need() {"
79 split(scripts, TMPRCSCRIPTS) 79 split(scripts, TMPRCSCRIPTS)
80 80
81 # Make sure that its a file we are working with, 81 # Make sure that its a file we are working with,
82 # and do not process scripts, source or backup files. 82 # and do not process scripts, source or backup files.
83 for (x in TMPRCSCRIPTS) 83 for (x in TMPRCSCRIPTS)
84 if ((isfile(TMPRCSCRIPTS[x])) && 84 if (((isfile(TMPRCSCRIPTS[x])) || (islink(TMPRCSCRIPTS[x]))) &&
85 (TMPRCSCRIPTS[x] !~ /((\.(sh|c|bak))|\~)$/)) { 85 (TMPRCSCRIPTS[x] !~ /((\.(sh|c|bak))|\~)$/)) {
86 86
87 RCCOUNT++ 87 RCCOUNT++
88 88
89 RCSCRIPTS[RCCOUNT] = TMPRCSCRIPTS[x] 89 RCSCRIPTS[RCCOUNT] = TMPRCSCRIPTS[x]

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20