From c145f56bc96633b2e4cf39d0e9ef0fb444ddf8c6 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 15 Jan 2025 12:14:45 +0900 Subject: [PATCH] LIBMAN: added lib cleanup + test --- automation_tools/libman.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/automation_tools/libman.sh b/automation_tools/libman.sh index b9493f0a..e636fa3b 100644 --- a/automation_tools/libman.sh +++ b/automation_tools/libman.sh @@ -12,6 +12,8 @@ excluded_libraries=("libselinux.so.1") excluded_libraries+=("libQt6Multimedia.so.6" "libQt6Core.so.6" "libQt6DBus.so.6" "libQt6Gui.so.6" "libQt6OpenGL.so.6" "libQt6Svg.so.6" "libQt6WaylandClient.so.6" "libQt6WaylandEglClientHwIntegration.so.6" "libQt6Widgets.so.6" "libQt6XcbQpa.so.6") # SDL libraries excluded_libraries+=("libSDL2_net-2.0.so.0.200.0" "libSDL2_mixer-2.0.so.0.600.3" "libSDL2-2.0.so.0" "libSDL2_mixer-2.0.so.0" "libSDL2_image-2.0.so.0" "libSDL2-2.0.so.0.2800.5" "libSDL2_ttf-2.0.so.0" "libSDL2_net-2.0.so.0" "libSDL2_image-2.0.so.0.600.3" "libSDL2_ttf-2.0.so.0.2200.0") +# TEST +excluded_libraries+=("libwayland-egl.so.1" "libwayland-cursor.so.0" "libxkbcommon.so.0") # Add libraries from /lib/x86_64-linux-gnu/ to the excluded list for lib in /lib/x86_64-linux-gnu/*.so*; do @@ -166,4 +168,12 @@ if [ ${#failed_files[@]} -ne 0 ]; then done fi +# Remove excluded libraries from the target directory +for excluded in "${excluded_libraries[@]}"; do + if [ -e "$target_dir/$excluded" ]; then + rm -f "$target_dir/$excluded" + echo "Deleted excluded library $target_dir/$excluded" + fi +done + echo "LibMan is flying away"