/[baselayout]/trunk/sbin/depscan.sh
Gentoo

Contents of /trunk/sbin/depscan.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 484 - (show annotations) (download) (as text)
Wed Apr 21 17:09:18 2004 UTC (15 years, 2 months ago) by vapier
File MIME type: text/x-sh
File size: 1146 byte(s)
update copyright years

1 #!/bin/bash
2 # Copyright 1999-2004 Gentoo Technologies, Inc.
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header$
5
6 source /etc/init.d/functions.sh
7
8 ebegin "Caching service dependencies"
9
10 if [ ! -d "${svcdir}" ]
11 then
12 if ! mkdir -p -m 0755 "${svcdir}" 2>/dev/null
13 then
14 eerror " Could not create needed directory '${svcdir}'!"
15 fi
16 fi
17
18 for x in softscripts snapshot options started
19 do
20 if [ ! -d "${svcdir}/${x}" ]
21 then
22 if ! mkdir -p -m 0755 "${svcdir}/${x}" 2>/dev/null
23 then
24 eerror " Could not create needed directory '${svcdir}/${x}'!"
25 fi
26 fi
27 done
28
29 # Clean out the non volitile directories ...
30 rm -rf ${svcdir}/dep{cache,tree} ${svcdir}/{broken,snapshot}/*
31
32 retval=0
33 SVCDIR="${svcdir}"
34 DEPTYPES="${deptypes}"
35 ORDTYPES="${ordtypes}"
36
37 export SVCDIR DEPTYPES ORDTYPES
38
39 cd /etc/init.d
40
41 /bin/gawk \
42 -f /lib/rcscripts/awk/functions.awk \
43 -f /lib/rcscripts/awk/cachedepends.awk || \
44 retval=1
45
46 bash "${svcdir}/depcache" | \
47 \
48 /bin/gawk \
49 -f /lib/rcscripts/awk/functions.awk \
50 -f /lib/rcscripts/awk/gendepends.awk || \
51 retval=1
52
53 #eend ${retval} "Failed to cache service dependencies"
54
55 exit ${retval}
56
57
58 # vim:ts=4

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20