aboutsummaryrefslogtreecommitdiffstats
path: root/.parse-deps.sed
blob: 488782d610657920cf981a3ebbfcac49e68bc5c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# remove target
1s/^[^:]*: //
# collapse lines
:loop
/\\$/ {
	s|///*|/|g
	s|$|//|
	N
	s|\\//. *||
	b loop
}
# split on unescaped spaces
s/\([^\]\)  */\1\
/g
# unescape spaces
s/\\ / /g