summaryrefslogtreecommitdiffstats
path: root/test cases/common/53 install script/src/myinstall.py
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/common/53 install script/src/myinstall.py')
-rw-r--r--test cases/common/53 install script/src/myinstall.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/test cases/common/53 install script/src/myinstall.py b/test cases/common/53 install script/src/myinstall.py
new file mode 100644
index 0000000..3a9d89b
--- /dev/null
+++ b/test cases/common/53 install script/src/myinstall.py
@@ -0,0 +1,14 @@
+#!/usr/bin/env python3
+
+import os
+import sys
+
+prefix = os.environ['MESON_INSTALL_DESTDIR_PREFIX']
+
+dirname = os.path.join(prefix, sys.argv[1])
+
+if not os.path.exists(dirname):
+ os.makedirs(dirname)
+
+with open(os.path.join(dirname, sys.argv[2] + '.in'), 'w') as f:
+ f.write('')