Guest User

Untitled

a guest
Aug 12th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 1.29 KB | None | 0 0
  1. create-icons:
  2.         # requires inkscape and imagemagick to be installed
  3.         @if [ ! -x /usr/bin/convert ]; then \
  4.                 echo "ERROR: imagemagick not installed!" ; \
  5.                 false ; \
  6.         fi
  7.         @if [ ! -x /usr/bin/inkscape ]; then \
  8.                 echo "ERROR: inkscape not installed!" ; \
  9.                 false ; \
  10.         fi
  11.  
  12.         # create XDG compatible icons from SVG
  13.         for i in 16 22 32 48 64 128; do \
  14.                 mkdir -p "icons/hicolor/$${i}x$${i}/apps" ; \
  15.                 inkscape --export-width=$${i} \
  16.                          --export-height=$${i} \
  17.                          --export-png="$(CURDIR)/icons/hicolor/$${i}x$${i}/apps/install-usb-gui.png" \
  18.                                 $(CURDIR)/icons/install-usb-gui.svg ; \
  19.         done
  20.  
  21.         # create XPM icons for the debian menu system
  22.         mkdir -p icons/pixmaps
  23.         convert icons/hicolor/32x32/apps/install-usb-gui.png icons/pixmaps/install-usb-gui.xpm
  24.         convert icons/hicolor/16x16/apps/install-usb-gui.png icons/pixmaps/install-usb-gui-16.xpm
  25.  
  26.         inkscape --export-width=160 \
  27.                  --export-height=51 \
  28.                  --export-png="$(CURDIR)/src/install-usb-title.png" \
  29.                                 $(CURDIR)/icons/install-usb-title.svg ; \
Add Comment
Please, Sign In to add comment