lib/scripts/tools.pl
changeset 42124 7519c7c33017
parent 42077 96c50a4210a2
child 48858 86816c61b5ca
equal deleted inserted replaced
42123:c407078c0d47 42124:7519c7c33017
    12 for my $dir (split(":", $ENV{"ISABELLE_TOOLS"})) {
    12 for my $dir (split(":", $ENV{"ISABELLE_TOOLS"})) {
    13   if (-d $dir) {
    13   if (-d $dir) {
    14     if (opendir DIR, $dir) {
    14     if (opendir DIR, $dir) {
    15       for my $name (readdir DIR) {
    15       for my $name (readdir DIR) {
    16         my $file = "$dir/$name";
    16         my $file = "$dir/$name";
    17         if (-f $file and -x $file and !($file =~ /~$/)) {
    17         if (-f $file and -x $file and !($file =~ /~$/ or $file =~ /\.orig$/)) {
    18           if (open FILE, $file) {
    18           if (open FILE, $file) {
    19             my $description;
    19             my $description;
    20             while (<FILE>) {
    20             while (<FILE>) {
    21               if (!defined($description) and m/DESCRIPTION: *(.*)$/) {
    21               if (!defined($description) and m/DESCRIPTION: *(.*)$/) {
    22                 $description = $1;
    22                 $description = $1;