/[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.19 Revision 1.21
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
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# $Header: /var/cvsroot/gentoo-src/rc-scripts/src/awk/cachedepends.awk,v 1.19 2004/11/15 16:23:41 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-src/rc-scripts/src/awk/cachedepends.awk,v 1.21 2005/03/10 17:00:04 azarah Exp $
4 4
5function print_start() { 5function print_start() {
6 print "source /sbin/functions.sh" >> TMPCACHE 6 print "source /sbin/functions.sh" >> TMPCACHE
7 print "" >> TMPCACHE 7 print "" >> TMPCACHE
8 print "need() {" >> TMPCACHE 8 print "need() {" >> TMPCACHE
104 RCSCRIPTS[RCCOUNT] = TMPRCSCRIPTS[x] 104 RCSCRIPTS[RCCOUNT] = TMPRCSCRIPTS[x]
105 } 105 }
106 106
107 if (RCCOUNT == 0) { 107 if (RCCOUNT == 0) {
108 eerror("No scripts to process!") 108 eerror("No scripts to process!")
109 system("rm -f "TMPCACHE) 109 dosystem("rm -f "TMPCACHE)
110 exit 1 110 exit 1
111 } 111 }
112 112
113 print_start() 113 print_start()
114 114
203 203
204 NEXTFILE = 0 204 NEXTFILE = 0
205 205
206 } 206 }
207 207
208 system("mv "TMPCACHE" "SVCDIR"/depcache") 208
209 assert(dosystem("rm -f "SVCDIR"/depcache"), "system(rm -f "SVCDIR"/depcache)")
210 assert(dosystem("mv "TMPCACHE" "SVCDIR"/depcache"), "system(mv "TMPCACHE" "SVCDIR"/depcache)")
209} 211}
210 212
211 213
212# vim:ts=4 214# vim:ts=4

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.20