summaryrefslogtreecommitdiff
path: root/pkg/mpv/gensources.awk
blob: c8a7f427d4e654d0882f8608af484f8485356f93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# usage: awk -f gensources.awk src/wscript_build.py >sources.txt

BEGIN {
	FS = "\""
	ignore["osdep/terminal-dummy.c"] = 1
	ignore["input/ipc-dummy.c"] = 1
	ignore["osdep/subprocess-dummy.c"] = 1
}

/ +\(.*\),$/ {
	if (ignore[$2])
		next
	if (NF == 3)
		print $2
	else if (NF == 5)
		print $2, $4
}