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