File: xmb-convert.sh

package info (click to toggle)
retroarch-assets 1.7.6%2Bgit20221024%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 212,296 kB
  • sloc: sh: 320; makefile: 53; python: 27
file content (22 lines) | stat: -rw-r--r-- 478 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

# MonoChrome SVG to PNG Converter
#
# Will update the given icon from its SVG to its PNG.
#
# Requires Inkscape to be installed.
#
# ./convert.sh THEME ICON
#
# Parameters
# - THEME   Which theme to act on.
# - ICON    Which icon to conver from an SVG to a PNG.
#
# Example
#
#     ./convert.sh monochrome battery-full
#     ./convert.sh flatui DOS

cd -- "$(cd -- "$(dirname -- "$0")" && pwd -P)"

inkscape -z -e "$1/png/$2.png" -w 256 -h 256 "../src/xmb/$1/$2.svg"