-#!/bin/sh -e
+#!/usr/bin/perl -w
#
# Checks to make sure you are root.
-PATH=debian:$PATH:/usr/lib/debhelper
-source dh_lib
+use strict;
+use Debian::Debhelper::Dh_Lib;
-if [ "`whoami`" != root ]; then
- error "You must run this as root."
-fi
+if ($< != 0) {
+ error("You must run this as root (or use fakeroot).");
+}