From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- meson/test cases/common/105 generatorcustom/catter.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 meson/test cases/common/105 generatorcustom/catter.py (limited to 'meson/test cases/common/105 generatorcustom/catter.py') diff --git a/meson/test cases/common/105 generatorcustom/catter.py b/meson/test cases/common/105 generatorcustom/catter.py new file mode 100755 index 000000000..c2726723c --- /dev/null +++ b/meson/test cases/common/105 generatorcustom/catter.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python3 + +import sys + +output = sys.argv[-1] +inputs = sys.argv[1:-1] + +with open(output, 'w') as ofile: + ofile.write('#pragma once\n') + for i in inputs: + with open(i) as ifile: + content = ifile.read() + ofile.write(content) + ofile.write('\n') -- cgit 1.2.3-korg