]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_testroot
r332: * dh_testroot: don't call init(), so it may be run even if it's not in the
[debhelper.git] / dh_testroot
index fcc9b4745c901fbb0fae7b8401d4ff362d85e594..c62894c74cbe6b7e83ab1662f5a686ef5e4fdb69 100755 (executable)
@@ -1,10 +1,10 @@
-#!/bin/sh -e
+#!/usr/bin/perl -w
 #
 # Checks to make sure you are root.
 
-PATH=debian:$PATH:/usr/lib/debhelper
-source dh_lib
+BEGIN { push @INC, "debian", "/usr/share/debhelper" }
+use Dh_Lib;
 
-if  [ "`whoami`" != root ]; then
-       error "You must run this as root."
-fi
+if ($< != 0) {
+       error("You must run this as root.");
+}