gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-mdb] 02/07: make conversion script able to handle multiple


From: gnunet
Subject: [taler-taler-mdb] 02/07: make conversion script able to handle multiple dis
Date: Sun, 14 Jan 2024 00:58:36 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository taler-mdb.

commit 596740e9269c4cecbf65cf0ce1011ea24d26b8e0
Author: Nullptrderef <nullptrderef@proton.me>
AuthorDate: Sun Jan 14 00:11:36 2024 +0100

    make conversion script able to handle multiple dis
---
 contrib/convert-svgs-to-pngs | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/contrib/convert-svgs-to-pngs b/contrib/convert-svgs-to-pngs
index 2e3c910..a132794 100755
--- a/contrib/convert-svgs-to-pngs
+++ b/contrib/convert-svgs-to-pngs
@@ -2,9 +2,13 @@
 # This file is in the public domain.
 # Convert local SVGs to the PNGs for display.
 set -eu
-mkdir -p png
-for svg in svg/*; 
-do 
-  png=$(sed 's/svg/png/g' <<< "$svg");
-  inkscape -w 768 -h 576 "$svg" -o "$png" &> /dev/null
-done
+for dir in err;
+do
+  mkdir -p "${dir}/png"
+  for svg in "${dir}/svg/"*; 
+  do 
+    png=$(sed 's/svg/png/g' <<< "$svg");
+    echo "Converting $svg to $png"
+    inkscape -w 768 -h 576 "$svg" -o "$png" &> /dev/null
+  done;
+done;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]