#!/usr/bin/perl =head1 NAME dh_testroot - ensure that a package is built as root =head1 SYNOPSIS B [S>] =head1 DESCRIPTION B 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 =cut use strict; use warnings; use Debian::Debhelper::Dh_Lib; inhibit_log(); if ($< != 0) { error("You must run this as root (or use fakeroot)."); } =head1 SEE ALSO L This program is a part of debhelper. =head1 AUTHOR Joey Hess =cut # Local Variables: # indent-tabs-mode: t # tab-width: 4 # cperl-indent-level: 4 # End: