File: testForUtils.pl

package info (click to toggle)
microbiomeutil 20101212%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 49,276 kB
  • sloc: perl: 4,878; ansic: 419; makefile: 98; sh: 27
file content (24 lines) | stat: -rwxr-xr-x 344 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env perl

use strict;
use warnings;



my @progs = qw(blastall megablast formatdb cdbyank cdbfasta);

my $error_flag = 0;

foreach my $prog (@progs) {
	my $path = `which $prog`;
	chomp $path;
	
	unless ($path && -e $path) {
		$error_flag = 1;
		print STDERR "\n\n\nError, cannot find path to $prog\n\n\n";
	}
}


exit($error_flag);