Add the creation of XPM assets (XFWM)

pull/801/head
fepitre 7 years ago
parent 8290cb813f
commit 4117582295

@ -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
Loading…
Cancel
Save