forked from bartvdbraak/blender
bdad961ce3
development of ode at http://q12.org and periodically copy the q12.org ODE sourcecode into this tree to update the Blender ODE. This ODE has not been changed from q12.org and is provided here merely as a convenience to Blender developers.
12 lines
376 B
Perl
Executable File
12 lines
376 B
Perl
Executable File
#!/usr/bin/perl
|
|
|
|
$a = join ('',<STDIN>);
|
|
$a =~ s/\\\n/ /g; # join continued lines
|
|
$a =~ s/(^\S+:)/$ARGV[0]$1/gm; # put prefix in front of rules
|
|
$a =~ s/\s+\/\S+/ /g; # remove absolute path dependencies
|
|
$a =~ s/\s+\n/\n/g; # remove whitespace at end of lines
|
|
$a =~ s/[ \t]+/ /g; # clean up interior whitespace
|
|
$a =~ s/ / \\\n /g; # put back line continuations
|
|
|
|
print $a;
|