4257467fec
1. header file and source file protections using #ifdef WIN32 2. new files and directories to support windows functionality 3. appropritate linkage symbols added (OMPI_DECLSPEC) for windows 4. some functions are unimplemented on the windows side. this is mostly because there might not be need to implement it in windows land. eg., forking a daemon off 5. Introduced locking mechanisms for windows This commit was SVN r3286.
42 строки
831 B
Perl
Исполняемый файл
42 строки
831 B
Perl
Исполняемый файл
#!/usr/bin/perl
|
|
#To keep brian happy
|
|
|
|
if (scalar(@ARGV) != 1) {
|
|
print "We need a source tree path\n";
|
|
exit(3);
|
|
}
|
|
|
|
$source_path = @ARGV[0];
|
|
|
|
open(HEADERS, "find $source_path -name *.h |");
|
|
while(<HEADERS>) {
|
|
open(TEMP, ">temp.txt");
|
|
$file_name = $_;
|
|
print $file_name;
|
|
open(FILE, "$file_name");
|
|
while(<FILE>) {
|
|
s/^(#)([\s|\t]*)(\w)/$1$3/;
|
|
print TEMP;
|
|
}
|
|
close(TEMP);
|
|
close(FILE);
|
|
system("mv temp.txt $file_name");
|
|
}
|
|
close(HEADERS);
|
|
|
|
open(SOURCES, "find $source_path -name *.c |");
|
|
while(<SOURCES>) {
|
|
open(TEMP, ">temp.txt");
|
|
$file_name = $_;
|
|
print $file_name;
|
|
open(FILE, "$file_name");
|
|
while(<FILE>) {
|
|
s/^(#)([\s|\t]*)(\w)/$1$3/;
|
|
print TEMP;
|
|
}
|
|
close(TEMP);
|
|
close(FILE);
|
|
system("mv temp.txt $file_name");
|
|
}
|
|
close(SOURCES);
|