]> git.donarmstrong.com Git - debhelper.git/commitdiff
r297: removed obsolete comment.
authorjoey <joey>
Thu, 28 Oct 1999 06:05:18 +0000 (06:05 +0000)
committerjoey <joey>
Thu, 28 Oct 1999 06:05:18 +0000 (06:05 +0000)
dh_testroot

index fcc9b4745c901fbb0fae7b8401d4ff362d85e594..6f9be362dc777dbf0c95e4787a5962f0f5f76ea8 100755 (executable)
@@ -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.");
+}