Commit 4fcc5508 authored by Mark Andrews's avatar Mark Andrews
Browse files

look for #! to determine if the file is PYTHON or PYTHON-BIN

parent 31d0b7e9
......@@ -69,6 +69,11 @@ while (<CHANGES>) {
$file_types{$_} = "PERL";
} elsif ($base =~ /\.py$/i) {
$file_types{$_} = "PYTHON";
if (open(PYTHON, $_)) {
my $line = <PYTHON>;
$file_types{$_} = "PYTHON-BIN" if ($line && $line =~ /^#!/);
close(PYTHON);
}
} elsif ($base =~ /\.sh$/) {
$file_types{$_} = "SH";
} elsif ($base =~ /\.docbook$/ ||
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment