Welcome to mirror list, hosted at ThFree Co, Russian Federation.

process_deps « tools « dist « ode « extern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9b95ddac38255996cfbe9b4129369f20ccdad3d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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;