Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP) logos: Makefile for converting selected Papirus SVG icons to NConf PNGs #7

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@

# A Makefile for converting selected Papirus SVG icons
# into 40x40 pixel NConf logos in PNG format. Also produce
# gd2 files for the legacy Nagios status map.
#
# https://www.nconf.org/
# https://github.com/PapirusDevelopmentTeam/papirus-icon-theme
# https://libgd.github.io/
#
# $ sudo apt install make git inkscape libgd-tools
# $ make

INKSCAPE ?= inkscape
WIDTH ?= 40
HEIGHT ?= 40
PNGTOGD2 ?= pngtogd2

INPUT += apps/distributor-logo-archlinux.svg
INPUT += apps/distributor-logo-android.svg
INPUT += apps/distributor-logo-debian.svg
INPUT += apps/distributor-logo-fedora.svg
INPUT += apps/distributor-logo-freebsd.svg
INPUT += apps/distributor-logo-linux-mint.svg
INPUT += apps/distributor-logo-mac.svg
INPUT += apps/distributor-logo-netbsd.svg
INPUT += apps/distributor-logo-openbsd.svg
INPUT += apps/distributor-logo-opensuse.svg
INPUT += apps/distributor-logo-raspbian.svg
INPUT += apps/distributor-logo-rhel.svg
INPUT += apps/distributor-logo-ubuntu.svg
INPUT += apps/distributor-logo-windows.svg

INPUT += apps/plex.svg
INPUT += apps/kodi.svg

INPUT += devices/camera-web.svg
INPUT += devices/camera-video.svg
INPUT += devices/computer.svg
INPUT += devices/computer-laptop.svg
INPUT += devices/drive-harddisk.svg
INPUT += devices/gnome-dev-ethernet.svg
INPUT += devices/gnome-dev-printer.svg
INPUT += devices/modem.svg
INPUT += devices/network-server.svg
INPUT += devices/network-vpn.svg
INPUT += devices/network-wireless.svg
INPUT += devices/phone.svg
INPUT += devices/scanner.svg
INPUT += devices/tablet.svg
INPUT += devices/uninterruptible-power-supply.svg
INPUT += devices/video-television.svg

PNGS = $(addprefix img/logos/papirus/,$(patsubst %.svg,%.png,$(notdir ${INPUT})))
GD2S = $(patsubst %.png,%.gd2,${PNGS})

all: papirus-icon-theme ${PNGS} ${GD2S}
git add ${OUTPUT} ${GD2S}

papirus-icon-theme:
git clone [email protected]:PapirusDevelopmentTeam/papirus-icon-theme.git

img/logos/papirus/%.png: papirus-icon-theme/Papirus/128x128/apps/%.svg
echo $<
mkdir -p img/logos/papirus
$(INKSCAPE) -z --file=$< --export-png=$@ --export-width=${WIDTH} --export-height=${HEIGHT}

img/logos/papirus/%.png: papirus-icon-theme/Papirus/128x128/devices/%.svg
echo $<
mkdir -p img/logos/papirus
$(INKSCAPE) -z --file=$< --export-png=$@ --export-width=${WIDTH} --export-height=${HEIGHT}

img/logos/papirus/%.gd2: img/logos/papirus/%.png
echo $<
$(PNGTOGD2) $< $@ 0 2


Binary file added img/logos/base/nems40.gd2
Binary file not shown.
Binary file added img/logos/base/nems40.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/camera-video.gd2
Binary file not shown.
Binary file added img/logos/papirus/camera-video.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/camera-web.gd2
Binary file not shown.
Binary file added img/logos/papirus/camera-web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/computer-laptop.gd2
Binary file not shown.
Binary file added img/logos/papirus/computer-laptop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/computer.gd2
Binary file not shown.
Binary file added img/logos/papirus/computer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/distributor-logo-android.gd2
Binary file not shown.
Binary file added img/logos/papirus/distributor-logo-android.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/distributor-logo-archlinux.gd2
Binary file not shown.
Binary file added img/logos/papirus/distributor-logo-archlinux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/distributor-logo-debian.gd2
Binary file not shown.
Binary file added img/logos/papirus/distributor-logo-debian.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/distributor-logo-fedora.gd2
Binary file not shown.
Binary file added img/logos/papirus/distributor-logo-fedora.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/distributor-logo-freebsd.gd2
Binary file not shown.
Binary file added img/logos/papirus/distributor-logo-freebsd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/distributor-logo-linux-mint.gd2
Binary file not shown.
Binary file added img/logos/papirus/distributor-logo-linux-mint.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/distributor-logo-mac.gd2
Binary file not shown.
Binary file added img/logos/papirus/distributor-logo-mac.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/distributor-logo-netbsd.gd2
Binary file not shown.
Binary file added img/logos/papirus/distributor-logo-netbsd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/distributor-logo-openbsd.gd2
Binary file not shown.
Binary file added img/logos/papirus/distributor-logo-openbsd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/distributor-logo-opensuse.gd2
Binary file not shown.
Binary file added img/logos/papirus/distributor-logo-opensuse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/distributor-logo-raspbian.gd2
Binary file not shown.
Binary file added img/logos/papirus/distributor-logo-raspbian.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/distributor-logo-rhel.gd2
Binary file not shown.
Binary file added img/logos/papirus/distributor-logo-rhel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/distributor-logo-ubuntu.gd2
Binary file not shown.
Binary file added img/logos/papirus/distributor-logo-ubuntu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/distributor-logo-windows.gd2
Binary file not shown.
Binary file added img/logos/papirus/distributor-logo-windows.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/drive-harddisk.gd2
Binary file not shown.
Binary file added img/logos/papirus/drive-harddisk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/gnome-dev-ethernet.gd2
Binary file not shown.
Binary file added img/logos/papirus/gnome-dev-ethernet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/gnome-dev-printer.gd2
Binary file not shown.
Binary file added img/logos/papirus/gnome-dev-printer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/kodi.gd2
Binary file not shown.
Binary file added img/logos/papirus/kodi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/modem.gd2
Binary file not shown.
Binary file added img/logos/papirus/modem.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/network-server.gd2
Binary file not shown.
Binary file added img/logos/papirus/network-server.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logos/papirus/network-vpn.gd2
Binary file not shown.
Binary file added img/logos/papirus/network-vpn.png
Binary file added img/logos/papirus/network-wireless.gd2
Binary file not shown.
Binary file added img/logos/papirus/network-wireless.png
Binary file added img/logos/papirus/phone.gd2
Binary file not shown.
Binary file added img/logos/papirus/phone.png
Binary file added img/logos/papirus/plex.gd2
Binary file not shown.
Binary file added img/logos/papirus/plex.png
Binary file added img/logos/papirus/scanner.gd2
Binary file not shown.
Binary file added img/logos/papirus/scanner.png
Binary file added img/logos/papirus/tablet.gd2
Binary file not shown.
Binary file added img/logos/papirus/tablet.png
Binary file added img/logos/papirus/uninterruptible-power-supply.gd2
Binary file not shown.
Binary file added img/logos/papirus/video-television.gd2
Binary file not shown.
Binary file added img/logos/papirus/video-television.png