summaryrefslogtreecommitdiff
path: root/dh_testdir
blob: 0bf917ae4c86fb87a33fa811c271176a9b7461d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl -w
#
# 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.

use Debian::Debhelper::Dh_Lib;
init();

foreach $file (Debian::Debhelper::Dh_Lib::getcontrol(),@ARGV) {
	if (! -e $file) {
		error("\"$file\" not found. Are you sure you are in the correct directory?");
	}
}