]> git.ktnx.net Git - icedeb.git/blobdiff - build
build: create .png files from the master .xcf
[icedeb.git] / build
diff --git a/build b/build
index b993202bc0b151cd2d6793028b4676f67b955e9a..2e8bcff13345bd5bb91ef0a7811931f000c43b74 100644 (file)
--- a/build
+++ b/build
@@ -5,6 +5,21 @@ set -u
 
 export PKG=icedeb
 
+btn2png() {
+    local tag="$1"
+    local btn="${2:-$tag}"
+
+    xcf2png -o "chrome/content/$PKG-$btn.png" res/button-bts.xcf "base" "$tag small" "$tag big"
+}
+
+btn2png bts
+btn2png pts
+btn2png deb
+btn2png ML ml
+btn2png DD ddpo
+btn2png buildd
+btn2png security
+
 [ ! -e $PKG.xpi ] || rm $PKG.xpi
 
 zip -r $PKG.xpi chrome install* chrome.manifest README res