summaryrefslogtreecommitdiff
path: root/dh_testdir
blob: 4d3c700bea9935db9a14b021533cc201f21fd5aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -e
#
# Checks to make sure we are building the package in the right directory.
# Tests for the existance of debian/control, and for the existance
# of any other files you specify on the command line.

PATH=debian:$PATH:/usr/lib/debhelper
source dh_lib

for file in debian/control $@; do
	if [ ! -e "$file" ] ; then
		error "\"$file\" not found. Are you sure you are in the correct directory?"
	fi
done