Debian Codegraph @

autodock/config_acro

raw
1 #!/usr/bin/perl
2
3 #
4 # Create a makefile that uses acro
5 #
6
7 system("cp ../acro/test/config.* test");
8
9 open (MAKEFILE, "Makefile") || die "ERROR: cannot open file \"Makefile\"!\n";
10 open (OUTFILE, ">Makefile-acro") || die "ERROR: cannot open file \"Makefile-acro\"!\n";
11
12 while (<MAKEFILE>) {
13 #
14 # Uncomment out the LINUX configuration
15 #
16 if (/^### ACRO/) {
17 $tmp = $_;
18 $tmp =~ s/^### (.*)/$1/;
19 print OUTFILE $tmp;
20 next;
21 }
22 #
23 # Simple ignore the blank lines
24 #
25 if (/^ACRO/) {
26 next;
27 }
28 #
29 # Print all other lines
30 #
31 print OUTFILE $_;
32 }
33