/[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.4 Revision 1.5
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.4 2002/11/18 13:07:02 azarah Exp $ 4# $Header: /var/cvsroot/gentoo-src/rc-scripts/src/awk/cachedepends.awk,v 1.5 2002/11/18 15:15: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)
64 64
65 RCCOUNT++ 65 RCCOUNT++
66 66
67 RCSCRIPTS[RCCOUNT] = TMPRCSCRIPTS[x] 67 RCSCRIPTS[RCCOUNT] = TMPRCSCRIPTS[x]
68 } 68 }
69
70 if (RCCOUNT == 0) {
71 eerror("No scripts to process!")
72 exit 1
73 }
69 74
70 DEPCACHE=SVCDIR "/depcache" 75 DEPCACHE=SVCDIR "/depcache"
71 76
72 unlink(DEPCACHE) 77 unlink(DEPCACHE)
73 78

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

  ViewVC Help
Powered by ViewVC 1.1.20