~ubuntu-branches/ubuntu/hoary/cvs/hoary-security

« back to all changes in this revision

Viewing changes to debian/cvs-makerepos

  • Committer: Bazaar Package Importer
  • Author(s): Steve McIntyre
  • Date: 2004-06-09 20:42:37 UTC
  • Revision ID: james.westby@ubuntu.com-20040609204237-xdqypwnaqxd965tc
Tags: 1:1.12.9-1
* New upstream version.
  + Several security fixes: CAN-2004-0414, CAN-2004-0416,
    CAN-2004-0417 & CAN-2004-0418

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# $Debian: cvs/debian/cvs-makerepos,v 1.2 2001/06/14 02:59:32 epg Exp $
 
4
 
 
5
repository_create () {
 
6
    printf "Creating CVS repository in $1...\n"
 
7
    if [ ! -d $1 ]; then
 
8
        install -d -o root -g src -m 2775 $1
 
9
    fi
 
10
    cvs -d $1 init
 
11
}
 
12
 
 
13
if [ "$1" = "-d" ]; then
 
14
    . /usr/share/debconf/confmodule
 
15
        
 
16
    db_get cvs/repositories
 
17
    REPOS="$RET"
 
18
elif [ -f /etc/cvs-cron.conf ]; then
 
19
    . /etc/cvs-cron.conf
 
20
elif [ -f /etc/cvs.conf ]; then
 
21
    . /etc/cvs.conf
 
22
    REPOS="$CVS_REPOS"
 
23
fi
 
24
 
 
25
IFS=':'
 
26
for i in $REPOS; do
 
27
    IFS='       \
 
28
'
 
29
    if [ ! -d $i -o ! -d $i/CVSROOT ]; then
 
30
        repository_create $i
 
31
    fi
 
32
done