Files
OpenUxAS-SoI/rm-external
Adam C. Foltzer f32570e893 Split up the cross-compilation Docker script for offline builds
This is a somewhat fragile interim solution due to the difficulty of
pre-building the Rust dependencies.
2018-03-13 15:42:56 -07:00

20 lines
425 B
Python
Executable File

#! /usr/bin/env python3
from pathlib import Path
import os
import shutil
cwd = Path.cwd()
pd = cwd / Path('3rd')
for p in pd.glob('*_patch.tar'):
d = str(p)[0:-10]
if Path(d).is_dir():
shutil.rmtree(d)
for p in pd.glob('*.wrap'):
d = str(p)[0:-5]
if Path(d).is_dir():
shutil.rmtree(d)
pc = pd / 'packagecache'
for c in pc.glob('*'):
os.remove(str(c))