summaryrefslogtreecommitdiff
path: root/dh_testroot
diff options
context:
space:
mode:
authorjoey <joey>1999-10-28 06:05:18 +0000
committerjoey <joey>1999-10-28 06:05:18 +0000
commit21ebee67467d895cb246b83c59976b6fbd21b143 (patch)
treeed8cf4b9a944ca667b73d6c878dc990484163ae3 /dh_testroot
parentce345636461e05dc52b74ad41b8049c2349c9f12 (diff)
downloaddebhelper-21ebee67467d895cb246b83c59976b6fbd21b143.tar.gz
r297: removed obsolete comment.
Diffstat (limited to 'dh_testroot')
-rwxr-xr-xdh_testroot13
1 files changed, 7 insertions, 6 deletions
diff --git a/dh_testroot b/dh_testroot
index fcc9b474..6f9be362 100755
--- a/dh_testroot
+++ b/dh_testroot
@@ -1,10 +1,11 @@
-#!/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;
+init();
-if [ "`whoami`" != root ]; then
- error "You must run this as root."
-fi
+if ($< != 0) {
+ error("You must run this as root.");
+}