~ubuntu-branches/ubuntu/gutsy/sbuild/gutsy

« back to all changes in this revision

Viewing changes to avg-pkg-build-time

  • Committer: Bazaar Package Importer
  • Author(s): Roger Leigh
  • Date: 2006-10-21 21:23:16 UTC
  • mfrom: (2.1.6 edgy)
  • Revision ID: james.westby@ubuntu.com-20061021212316-nh89o5rnhyk1epnn
Tags: 0.52
* New upstream release.
* sbuild: Remove incorrect WannaBuild:: prefix from version_compare.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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>
5
5
#
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.
10
10
#
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.
15
15
#
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.
19
 
#
20
 
# $Id: avg-pkg-build-time,v 1.1.1.1 2004/09/17 13:17:41 frankie Exp $
21
 
#
22
 
# $Log: avg-pkg-build-time,v $
23
 
# Revision 1.1.1.1  2004/09/17 13:17:41  frankie
24
 
# Imported sources
25
 
#
26
 
# Revision 1.13  2000/10/19 08:48:11  rnhodek
27
 
# Check if /etc/sbuild.conf exists before including it.
28
 
#
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
31
 
# DB_File anymore.
32
 
#
33
 
# Revision 1.11  1999/05/04 14:25:38  rnhodek
34
 
# Also can dump avg-space-db now.
35
 
#
36
 
# Revision 1.10  1999/02/01 09:29:35  rnhodek
37
 
# New option -f (--dbfile) to select DB on the command line.
38
 
#
39
 
# Revision 1.9  1998/11/26 07:04:28  james
40
 
# Handle 1 entry/n entries properly.
41
 
#
42
 
# Revision 1.8  1998/10/01 10:15:32  rnhodek
43
 
# Read sbuild.conf instead of wanna-build.conf; time db now defined
44
 
# there.
45
 
#
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.
50
 
#
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).
55
 
#
56
 
# Revision 1.5  1998/09/17 09:28:18  rnhodek
57
 
# Fix typo.
58
 
#
59
 
# Revision 1.4  1998/09/17 09:27:07  rnhodek
60
 
# Need to open DB in read+write mode for --delete.
61
 
#
62
 
# Revision 1.3  1998/09/17 09:26:04  rnhodek
63
 
# Added --delete mode.
64
 
#
65
 
# Revision 1.2  1998/09/15 13:03:49  rnhodek
66
 
# Added cvs headers.
 
18
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 
19
#
 
20
# $Id: avg-pkg-build-time 537 2006-04-03 17:41:28Z rleigh $
67
21
#
68
22
 
69
 
($main::HOME = $ENV{'HOME'})
70
 
        or die "HOME not defined in environment!\n";
71
23
package conf;
72
 
$HOME = $main::HOME;
73
 
require "/etc/sbuild.conf" if -r "/etc/sbuild.conf";
74
 
require "$HOME/.sbuildrc" if -r "$HOME/.sbuildrc";
 
24
use Sbuild::Conf;
75
25
package main;
76
26
 
77
27
die "No avg-time database defined\n" if !$conf::avg_time_db;