test cases/common/53 install script/src/myinstall.py
raw| 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | import os |
| 4 | import sys |
| 5 | |
| 6 | prefix = os.environ['MESON_INSTALL_DESTDIR_PREFIX'] |
| 7 | |
| 8 | dirname = os.path.join(prefix, sys.argv[1]) |
| 9 | |
| 10 | if not os.path.exists(dirname): |
| 11 | os.makedirs(dirname) |
| 12 | |
| 13 | with open(os.path.join(dirname, sys.argv[2] + '.in'), 'w', encoding='utf-8') as f: |
| 14 | f.write('') |