mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-11-16 23:55:38 +01:00
36 lines
726 B
Bash
Executable File
36 lines
726 B
Bash
Executable File
#! /bin/bash
|
|
|
|
INKSCAPE="/usr/bin/inkscape"
|
|
OPTIPNG="/usr/bin/optipng"
|
|
|
|
INDEX="logos.txt"
|
|
ASSETS_DIR="icons-1080p"
|
|
SRC_FILE="logos.svg"
|
|
|
|
install -d $ASSETS_DIR
|
|
|
|
for i in `cat $INDEX`
|
|
do
|
|
if [ -f $ASSETS_DIR/$i.png ]; then
|
|
echo $ASSETS_DIR/$i.png exists.
|
|
else
|
|
echo
|
|
echo Rendering $ASSETS_DIR/$i.png
|
|
$INKSCAPE --export-id=$i \
|
|
--export-id-only \
|
|
--export-filename=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null
|
|
$OPTIPNG -o7 --quiet $ASSETS_DIR/$1.png
|
|
fi
|
|
done
|
|
|
|
cd $ASSETS_DIR
|
|
cp -a archlinux.png arch.png
|
|
cp -a gnu-linux.png linux.png
|
|
cp -a gnu-linux.png unknown.png
|
|
cp -a gnu-linux.png lfs.png
|
|
cp -a manjaro.png Manjaro.i686.png
|
|
cp -a manjaro.png Manjaro.x86_64.png
|
|
cp -a driver.png memtest.png
|
|
|
|
exit 0
|