OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
email
/
vendor
/
aws
/
aws-crt-php
/
dev-scripts
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
07/10/2024 05:23:03 AM
rwxr-xr-x
📄
cleanup_build.py
1.14 KB
07/10/2024 05:20:09 AM
rw-r--r--
📄
package.xml-template_post
321 bytes
07/10/2024 05:20:09 AM
rw-r--r--
📄
package.xml-template_pre
1.31 KB
07/10/2024 05:20:09 AM
rw-r--r--
📄
prepare_pecl_package_xml.py
4.78 KB
07/10/2024 05:20:09 AM
rw-r--r--
📄
prepare_pecl_release.py
2.26 KB
07/10/2024 05:20:09 AM
rw-r--r--
📄
run_tests.bat
629 bytes
07/10/2024 05:20:09 AM
rw-r--r--
📄
run_tests.sh
459 bytes
07/10/2024 05:20:09 AM
rw-r--r--
Editing: cleanup_build.py
Close
import os import glob import shutil TOOLS_DIR = os.path.dirname(os.path.abspath(__file__)) WORK_DIR = os.path.join(TOOLS_DIR, '..') # Remove specified directories DIRS_TO_REMOVE = [ '.deps', '.libs', 'build', 'cmake_build', 'include', 'modules', 'vendor', 'autom4te.cache'] # Remove specified files FILES_TO_REMOVE = [ 'Makefile', 'Makefile.fragments', 'Makefile.global', 'Makefile.objects', 'config.guess', 'config.h', 'config.h.in', 'config.log', 'config.nice', 'config.status', 'config.sub', 'configure', 'configure.in', 'configure.ac', 'install-sh', 'libtool', 'ltmain.sh', 'missing', 'mkinstalldirs', 'run-tests.php', 'awscrt.la', 'ext/awscrt.dep', 'composer.lock', 'acinclude.m4', 'aclocal.m4', '**/*.lo', '**/*.o', '**/*.la', '**/*.a', '*.tgz'] os.chdir(WORK_DIR) for directory in DIRS_TO_REMOVE: shutil.rmtree(directory, ignore_errors=True) for pattern in FILES_TO_REMOVE: for filepath in glob.glob(pattern): os.remove(filepath)