You've already forked OpenUxAS-SoI
mirror of
https://github.com/AdaCore/OpenUxAS-SoI.git
synced 2026-02-12 13:04:49 -08:00
This cleans up the root directory substantially. The modifications to the `prepare` script also set it up to work better on Windows.
16 lines
310 B
Python
Executable File
16 lines
310 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)
|
|
pc = pd / 'packagecache'
|
|
for c in pc.glob('*'):
|
|
os.remove(str(c))
|