File: dh_testroot

package info (click to toggle)
debhelper 5.0.42
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,332 kB
  • ctags: 64
  • sloc: perl: 2,808; makefile: 234; sh: 6
file content (36 lines) | stat: -rwxr-xr-x 569 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/perl -w

=head1 NAME

dh_testroot - ensure that a package is built as root

=head1 SYNOPSIS

B<dh_testroot> [S<I<debhelper options>>]

=head1 DESCRIPTION

dh_testroot simply checks to see if you are root. If not, it exits with an
error. Debian packages must be built as root, though you can use 
L<fakeroot(1)>

=cut

use strict;
use Debian::Debhelper::Dh_Lib;

if ($< != 0) {
	error("You must run this as root (or use fakeroot).");
}

=head1 SEE ALSO

L<debhelper(7)>

This program is a part of debhelper.

=head1 AUTHOR

Joey Hess <joeyh@debian.org>

=cut