~ubuntu-branches/ubuntu/natty/dpsyco/natty

« back to all changes in this revision

Viewing changes to devel/src/dpsch-installskel

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2002-04-08 20:41:30 UTC
  • Revision ID: james.westby@ubuntu.com-20020408204130-aumsesgfm39nwyb0
Tags: 1.0.10
* Added documentation from Machael Boman
  <michael.boman@securecirt.com>, closes: #128120.
* Fixed purge problem, moved deconfiguring to prerm from postinst,
  closes: #141732.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# DocumentId:   $Id: dpsch-installskel,v 1.4 2001/09/07 09:18:10 ola Exp $
 
3
# Author:       $Author: ola $
 
4
#               Ola Lundqvist <opal@debian.org>
 
5
# Arguments:    
 
6
# Summary:
 
7
#       Install a system skel to a package name.
 
8
 
 
9
. /etc/dpsyco/defaults.conf
 
10
 
 
11
if [ ! -d debian ] ; then
 
12
    echo "No debian directory, exiting."
 
13
    exit 0
 
14
fi
 
15
 
 
16
if [ ! -e debian/control ] ; then
 
17
    echo "No debian control file, exiting."
 
18
    exit 0
 
19
fi
 
20
 
 
21
dpsch-listbinpkgs | {
 
22
    while read PKG ; do
 
23
        if [ -e debian/$PKG.skel ] ; then
 
24
            cat debian/$PKG.skel | {
 
25
                while read DIR ; do
 
26
                    mkdir -p debian/$PKG$SKELSRC
 
27
                    cp -aRf $DIR/* debian/$PKG$SKELSRC
 
28
                done
 
29
            }
 
30
        fi
 
31
    done
 
32
}
 
33
 
 
34
dpsch-showfirstbinpkg | {
 
35
    while read PKG ; do
 
36
        if [ -e debian/skel ] ; then
 
37
            cat debian/skel | {
 
38
                while read DIR ; do
 
39
                    mkdir -p debian/$PKG$SKELSRC
 
40
                    cp -aRf $DIR/* debian/$PKG$SKELSRC
 
41
                done
 
42
            }
 
43
        fi
 
44
    done
 
45
}