~emersion/go-drm

ae7f101956c06ac2e32531acfa7975a5d234875b — Simon Ser 4 months ago 7e4974e
Run gofmt on generated file
1 files changed, 3 insertions(+), 0 deletions(-)

M fourcc.py
M fourcc.py => fourcc.py +3 -0
@@ 7,6 7,7 @@ import tempfile

cc = os.getenv("CC", "cc")
pkg_config = os.getenv("PKG_CONFIG", "pkg-config")
gofmt = os.getenv("GOFMT", "gofmt")

version = subprocess.check_output([pkg_config, "libdrm", "--modversion"]).decode().strip()
cflags = subprocess.check_output([pkg_config, "libdrm", "--cflags-only-I"]).decode().strip().split()


@@ 140,3 141,5 @@ with open("fourcc_generated.go", "w+") as go_file:
		go_file.write('\t\treturn "unknown"\n')
		go_file.write('\t}\n')
		go_file.write('}\n')

subprocess.check_call([gofmt, "-w", "fourcc_generated.go"])