]> git.donarmstrong.com Git - debhelper.git/blob - dh_testroot
r576: * Rename debhelper.1 to debhelper.7.
[debhelper.git] / dh_testroot
1 #!/usr/bin/perl -w
2
3 =head1 NAME
4
5 dh_testroot - ensure that a package is built as root
6
7 =head1 SYNOPSIS
8
9 B<dh_testroot> [S<I<debhelper options>>]
10
11 =head1 DESCRIPTION
12
13 dh_testroot simply checks to see if you are root. If not, it exits with an
14 error. Debian packages must be built as root, though you can use 
15 L<fakeroot(1)>
16
17 =cut
18
19 use strict;
20 use Debian::Debhelper::Dh_Lib;
21
22 if ($< != 0) {
23         error("You must run this as root (or use fakeroot).");
24 }
25
26 =head1 SEE ALSO
27
28 L<debhelper(7)>
29
30 This program is a part of debhelper.
31
32 =head1 AUTHOR
33
34 Joey Hess <joeyh@debian.org>
35
36 =cut