mirror of
https://github.com/openharmony/third_party_musl2.git
synced 2026-07-25 07:16:05 -04:00
140315895f
2. Add BUILD.gn and its components Signed-off-by: zhuoli <pengzhuoli@huawei.com>
33 lines
788 B
Python
Executable File
33 lines
788 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import os
|
|
import sys
|
|
import argparse
|
|
from shutil import copy
|
|
|
|
def musl_copy_file(src, dest):
|
|
dest_dir = os.path.dirname(dest)
|
|
if not os.path.exists(dest_dir):
|
|
os.makedirs(dest_dir)
|
|
copy(src, dest)
|
|
|
|
def main():
|
|
parser = argparse.ArgumentParser(description=__doc__)
|
|
|
|
parser.add_argument('--input',
|
|
required = True,
|
|
help = 'The header source path',
|
|
metavar = 'FILE')
|
|
|
|
parser.add_argument('--output',
|
|
required = True,
|
|
help = 'The output directory',
|
|
metavar = 'FILE')
|
|
|
|
args = parser.parse_args()
|
|
|
|
musl_copy_file(args.input, args.output)
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(main())
|