/[baselayout]/branches/baselayout-1_12/sbin/depscan.sh
Gentoo

Diff of /branches/baselayout-1_12/sbin/depscan.sh

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

Revision 1391 Revision 1394
26 fi 26 fi
27done 27done
28 28
29# Only update if files have actually changed 29# Only update if files have actually changed
30update=1 30update=1
31ref_file="${svcdir}/depcache"
32 31
33if [[ $1 == "-u" ]] ; then 32if [[ $1 == "-u" ]] ; then
34 update=0 33 update=0
35 clock_screw=0 34 clock_screw=0
36 mtime_test="${svcdir}/mtime-test.$$" 35 mtime_test="${svcdir}/mtime-test.$$"
83/bin/gawk \ 82/bin/gawk \
84 -f /lib/rcscripts/awk/functions.awk \ 83 -f /lib/rcscripts/awk/functions.awk \
85 -f /lib/rcscripts/awk/gendepends.awk || \ 84 -f /lib/rcscripts/awk/gendepends.awk || \
86 retval=1 85 retval=1
87 86
88touch -r "${ref_file}" "${svcdir}"/dep{cache,tree} 87touch "${svcdir}"/dep{cache,tree}
89chmod 0644 "${svcdir}"/dep{cache,tree} 88chmod 0644 "${svcdir}"/dep{cache,tree}
90 89
91eend ${retval} "Failed to cache service dependencies" 90eend ${retval} "Failed to cache service dependencies"
92 91
93exit ${retval} 92exit ${retval}

Legend:
Removed from v.1391  
changed lines
  Added in v.1394

  ViewVC Help
Powered by ViewVC 1.1.20