From 4117582295f5267ae49909f162074f45b7e2fe91 Mon Sep 17 00:00:00 2001 From: fepitre Date: Tue, 20 Jun 2017 16:01:45 +0200 Subject: [PATCH] Add the creation of XPM assets (XFWM) --- common/xfwm4/render-assets.sh | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/common/xfwm4/render-assets.sh b/common/xfwm4/render-assets.sh index f38ea37..4ad9a52 100755 --- a/common/xfwm4/render-assets.sh +++ b/common/xfwm4/render-assets.sh @@ -10,6 +10,7 @@ DARK_ASSETS_DIR="assets-dark" INDEX="assets.txt" +# PNG rendering for i in `cat $INDEX` do if [ -f $ASSETS_DIR/$i.png ]; then @@ -33,4 +34,23 @@ else && $OPTIPNG -o7 --quiet $DARK_ASSETS_DIR/$i.png fi done -exit 0 + +# XPM creation +for i in `cat $INDEX` +do +if [ -f $ASSETS_DIR/$i.xpm ]; then + echo $ASSETS_DIR/$i.xpm exists. +else + echo + echo Creating $ASSETS_DIR/$i.xpm + convert $ASSETS_DIR/$i.png $ASSETS_DIR/$i.xpm +fi +if [ -f $DARK_ASSETS_DIR/$i.xpm ]; then + echo $DARK_ASSETS_DIR/$i.xpm exists. +else + echo + echo Creating $DARK_ASSETS_DIR/$i.xpm + convert $DARK_ASSETS_DIR/$i.png $DARK_ASSETS_DIR/$i.xpm +fi +done +exit 0 \ No newline at end of file