Add scripts to update the PDF content from the available GIFs
[project-aon.git] / es / update-titles.sh
diff --git a/es/update-titles.sh b/es/update-titles.sh
new file mode 100755 (executable)
index 0000000..80b9819
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh -e
+
+# Update title skins based on the gif files contributed 
+
+for dir in gif/ls/*; do
+    book=`basename $dir` 
+    title_gif="gif/ls/${book}/skins/standard/title.gif"
+    title_png="png/ls/${book}/skins/standard/title.png"
+    if [ -e "$title_gif" ] ; then
+        echo "Book $book - updating PNG title with GIF version"
+        convert "$title_gif" "$title_png"
+    fi
+done