blender/extern/ode/dist/tools/process_deps
Norman Lin bdad961ce3 checkin of ODE library. Do not modify the ODE source code; instead, follow the
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.
2002-10-18 15:02:02 +00:00

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;