mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-11-05 11:26:13 +01:00
35 lines
680 B
Bash
Executable File
35 lines
680 B
Bash
Executable File
#! /bin/bash
|
|
|
|
INKSCAPE="/usr/bin/inkscape"
|
|
|
|
INDEX="logos.txt"
|
|
ASSETS_DIR="icons-4k"
|
|
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-dpi=192 \
|
|
--export-id-only \
|
|
--export-png=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null
|
|
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
|