/[vps]/baselayout-vserver/branches/baselayout-1_12/src/awk/cachedepends.awk
Gentoo

Diff of /baselayout-vserver/branches/baselayout-1_12/src/awk/cachedepends.awk

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

Revision 275 Revision 276
28} 28}
29 29
30function print_header1(mtime) { 30function print_header1(mtime) {
31 print "#*** " MYFILENAME " ***" >> TMPCACHE 31 print "#*** " MYFILENAME " ***" >> TMPCACHE
32 print "" >> TMPCACHE 32 print "" >> TMPCACHE
33 print "myservice=\"" MYFILENAME "\"" >> TMPCACHE 33 print "SVCNAME=\"" MYFILENAME "\"" >> TMPCACHE
34 print "SVCNAME=\"${SVCNAME##*/}\"" >> TMPCACHE
35
36 # Support deprected myservice variable
34 print "myservice=\"${myservice##*/}\"" >> TMPCACHE 37 print "myservice=\"${SVCNAME}\"" >> TMPCACHE
38
35 print "echo \"RCSCRIPT ${myservice}\"" >> TMPCACHE 39 print "echo \"RCSCRIPT ${SVCNAME}\"" >> TMPCACHE
36 print "" >> TMPCACHE 40 print "" >> TMPCACHE
37 print "echo \"MTIME " mtime "\"" >> TMPCACHE 41 print "echo \"MTIME " mtime "\"" >> TMPCACHE
38 print "" >> TMPCACHE 42 print "" >> TMPCACHE
39} 43}
40 44
41function print_header2(mtime) { 45function print_header2(mtime) {
42 print "(" >> TMPCACHE 46 print "(" >> TMPCACHE
43 print " # Get settings for rc-script ..." >> TMPCACHE 47 print " # Get settings for rc-script ..." >> TMPCACHE
44 print "" >> TMPCACHE 48 print "" >> TMPCACHE
45 print " [ -e \"/etc/conf.d/${myservice}\" ] && source \"/etc/conf.d/${myservice}\"" >> TMPCACHE
46 print "" >> TMPCACHE
47 print " [ -e /etc/conf.d/net ] && \\" >> TMPCACHE 49 print " [ -e /etc/conf.d/net ] && \\" >> TMPCACHE
48 print " [ \"${myservice%%.*}\" = \"net\" ] && \\" >> TMPCACHE 50 print " [ \"${SVCNAME%%.*}\" = \"net\" ] && \\" >> TMPCACHE
49 print " [ \"${myservice##*.}\" != \"${myservice}\" ] && source /etc/conf.d/net" >> TMPCACHE 51 print " [ \"${SVCNAME##*.}\" != \"${SVCNAME}\" ] && source /etc/conf.d/net" >> TMPCACHE
52 print "" >> TMPCACHE
53 print " [ -e \"/etc/conf.d/${SVCNAME}\" ] && source \"/etc/conf.d/${SVCNAME}\"" >> TMPCACHE
50 print "" >> TMPCACHE 54 print "" >> TMPCACHE
51 print " [ -e /etc/rc.conf ] && source /etc/rc.conf" >> TMPCACHE 55 print " [ -e /etc/rc.conf ] && source /etc/rc.conf" >> TMPCACHE
52 print "" >> TMPCACHE 56 print "" >> TMPCACHE
53 print " depend() {" >> TMPCACHE 57 print " depend() {" >> TMPCACHE
54 print " return 0" >> TMPCACHE 58 print " return 0" >> TMPCACHE

Legend:
Removed from v.275  
changed lines
  Added in v.276

  ViewVC Help
Powered by ViewVC 1.1.20