2020-07-03 05:42:40 +03:00
|
|
|
#!/usr/bin/env python
|
|
|
|
import os
|
|
|
|
import subprocess
|
|
|
|
import sys
|
|
|
|
|
|
|
|
source = sys.argv[1]
|
|
|
|
dest = sys.argv[2]
|
|
|
|
|
|
|
|
# Ensure any existing framework is removed
|
|
|
|
subprocess.check_output(["rm", "-rf", dest])
|
|
|
|
|
|
|
|
subprocess.check_output(["cp", "-a", source, dest])
|
|
|
|
|
|
|
|
# Strip headers, we do not need to ship them
|
2020-11-02 09:43:21 +03:00
|
|
|
subprocess.check_output(["rm", "-r", os.path.join(dest, "Headers")])
|
|
|
|
subprocess.check_output(
|
|
|
|
["rm", "-r", os.path.join(dest, "Versions", "Current", "Headers")]
|
|
|
|
)
|