File: dh_testdir

package info (click to toggle)
debhelper 1.1.24
  • links: PTS
  • area: main
  • in suites: slink
  • size: 836 kB
  • ctags: 74
  • sloc: perl: 1,037; sh: 681; makefile: 360
file content (15 lines) | stat: -rwxr-xr-x 435 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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.

BEGIN { push @INC, "debian", "/usr/lib/debhelper" }
use Dh_Lib;
init();

foreach $file ('debian/control',@ARGV) {
	if (! -e $file) {
		error("\"$file\" not found. Are you sure you are in the correct directory?");
	}
}