summaryrefslogtreecommitdiff
path: root/test cases/common/56 install script/customtarget.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2020-05-03 23:20:59 +0300
committerGitHub <noreply@github.com>2020-05-03 23:20:59 +0300
commit9a6e79dc6887890ffa6f7198032788caa065a959 (patch)
treed433e3ef2769d2541a88ded5c11335fbba07d229 /test cases/common/56 install script/customtarget.py
parent88ba5ffb84d1e352489bbb094bc426174a8b4440 (diff)
parent81f35f15492a35bcb294f7a516459141b1bd73ab (diff)
downloadmeson-9a6e79dc6887890ffa6f7198032788caa065a959.tar.gz
Merge pull request #7060 from dcbaker/install-script-targets
Allow meson.add_*_script to take additional types
Diffstat (limited to 'test cases/common/56 install script/customtarget.py')
-rwxr-xr-xtest cases/common/56 install script/customtarget.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/test cases/common/56 install script/customtarget.py b/test cases/common/56 install script/customtarget.py
new file mode 100755
index 000000000..e28373a39
--- /dev/null
+++ b/test cases/common/56 install script/customtarget.py
@@ -0,0 +1,19 @@
+#!/usr/bin/env python3
+
+import argparse
+import os
+
+
+def main() -> None:
+ parser = argparse.ArgumentParser()
+ parser.add_argument('dirname')
+ args = parser.parse_args()
+
+ with open(os.path.join(args.dirname, '1.txt'), 'w') as f:
+ f.write('')
+ with open(os.path.join(args.dirname, '2.txt'), 'w') as f:
+ f.write('')
+
+
+if __name__ == "__main__":
+ main()