From bed04b34442029be05c313cbd6bf9d03a34ec3a2 Mon Sep 17 00:00:00 2001 From: Guido Falsi Date: Wed, 6 Sep 2023 16:54:55 +0200 Subject: [PATCH] Do not convert 'symbolic-rtl' versions. --- svgtopng/pngtheme.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svgtopng/pngtheme.sh b/svgtopng/pngtheme.sh index 284746776..68cf00629 100755 --- a/svgtopng/pngtheme.sh +++ b/svgtopng/pngtheme.sh @@ -18,13 +18,13 @@ echo "== Processing $1" echo " * Creating png icons from svg files and symlinks" #ignore list customized for elementary-xfce -find "$icondir" -iname "*.svg" -not \( -wholename "*/scalable/*" -o -wholename "*/symbolic/*" -o -wholename "*-symbolic.svg" -o -wholename "*/animations/*process-*" -o -wholename "*/animations/*gnome-spinner*" -o -wholename "*/animations*pk-action-refresh*" \) -exec $cmd {} + +find "$icondir" -iname "*.svg" -not \( -wholename "*/scalable/*" -o -wholename "*/symbolic/*" -o -wholename "*-symbolic.svg" -o -wholename "*-symbolic-rtl.svg" -o -wholename "*/animations/*process-*" -o -wholename "*/animations/*gnome-spinner*" -o -wholename "*/animations*pk-action-refresh*" \) -exec $cmd {} + echo " * Cleanup icon directory" find "$icondir" -name "untitled folder" -type d -exec rm -rf {} + echo " * Deleting svg files" -find "$icondir" -iname '*.svg' -not \( -wholename "*/scalable/*" -o -wholename "*/symbolic/*" -o -wholename "*-symbolic.svg" -o -wholename "*/animations/*process-*" -o -wholename "*/animations/*gnome-spinner*" -o -wholename "*/animations*pk-action-refresh*" \) -delete +find "$icondir" -iname '*.svg' -not \( -wholename "*/scalable/*" -o -wholename "*/symbolic/*" -o -wholename "*-symbolic.svg" -o -wholename "*-symbolic-rtl.svg" -o -wholename "*/animations/*process-*" -o -wholename "*/animations/*gnome-spinner*" -o -wholename "*/animations*pk-action-refresh*" \) -delete #ignore the output if the theme depends on another one (e.g. elementary-xfce-dark needs to be converted before elementary-xfce) echo " * Checking dangling symlinks"