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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 462 - (hide annotations) (download) (as text)
Sun Feb 8 11:42:21 2004 UTC (10 years, 10 months ago) by azarah
Original Path: trunk/sbin/depscan.sh
File MIME type: text/x-sh
File size: 1193 byte(s)
Fix /sbin/depscan.sh, /sbin/functions.sh and /sbin/rc to use mkdir rather
than install, as newer versions of install is located in /usr/bin.  This
closes bug #39648.

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