3
3
# avg-pkg-build-time: display average build times of packages
4
4
# Copyright (C) 1998 Roman Hodek <Roman.Hodek@informatik.uni-erlangen.de>
6
# This program is free software; you can redistribute it and/or
7
# modify it under the terms of the GNU General Public License as
8
# published by the Free Software Foundation; either version 2 of the
9
# License, or (at your option) any later version.
6
# This program is free software; you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
8
# the Free Software Foundation; either version 2 of the License, or
9
# (at your option) any later version.
11
# This program is distributed in the hope that it will be useful, but
12
# WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
# General Public License for more details.
11
# This program is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
# GNU General Public License for more details.
16
16
# You should have received a copy of the GNU General Public License
17
17
# along with this program; if not, write to the Free Software
18
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
# $Id: avg-pkg-build-time,v 1.1.1.1 2004/09/17 13:17:41 frankie Exp $
22
# $Log: avg-pkg-build-time,v $
23
# Revision 1.1.1.1 2004/09/17 13:17:41 frankie
26
# Revision 1.13 2000/10/19 08:48:11 rnhodek
27
# Check if /etc/sbuild.conf exists before including it.
29
# Revision 1.12 1999/07/13 07:27:39 rnhodek
30
# Use GDBM for time/space databases, as perl-5.004 seems not to contain
33
# Revision 1.11 1999/05/04 14:25:38 rnhodek
34
# Also can dump avg-space-db now.
36
# Revision 1.10 1999/02/01 09:29:35 rnhodek
37
# New option -f (--dbfile) to select DB on the command line.
39
# Revision 1.9 1998/11/26 07:04:28 james
40
# Handle 1 entry/n entries properly.
42
# Revision 1.8 1998/10/01 10:15:32 rnhodek
43
# Read sbuild.conf instead of wanna-build.conf; time db now defined
46
# Revision 1.7 1998/09/24 10:00:26 rnhodek
47
# Changed argument handling.
48
# Added --add to add a build time manually.
49
# New option --top to list ordered by build time.
51
# Revision 1.6 1998/09/17 11:10:23 rnhodek
52
# Added --dump mode for displaying raw contents.
53
# Align package names to 3 tab stops.
54
# Display also standard derivation (sigma).
56
# Revision 1.5 1998/09/17 09:28:18 rnhodek
59
# Revision 1.4 1998/09/17 09:27:07 rnhodek
60
# Need to open DB in read+write mode for --delete.
62
# Revision 1.3 1998/09/17 09:26:04 rnhodek
63
# Added --delete mode.
65
# Revision 1.2 1998/09/15 13:03:49 rnhodek
18
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
# $Id: avg-pkg-build-time 537 2006-04-03 17:41:28Z rleigh $
69
($main::HOME = $ENV{'HOME'})
70
or die "HOME not defined in environment!\n";
73
require "/etc/sbuild.conf" if -r "/etc/sbuild.conf";
74
require "$HOME/.sbuildrc" if -r "$HOME/.sbuildrc";
77
27
die "No avg-time database defined\n" if !$conf::avg_time_db;