102.11.0-1
[arch-packages.git] / filesystem / repos / core-x86_64 / mklogos.sh
blob1410ed8f18d7b1da25ef64bef9c2f02465e5cbea
1 #!/bin/sh
2 set -e
4 baseurl=https://raw.githubusercontent.com/archlinux/archweb/44336237bcaadb07d01c1f83fb97a9dc56cda56d/public/static/logos/
6 mklogo() (
7 name="$1"
8 remote="$2"
10 rm -f -- "$remote" "$name.svg.tmp" "$name.svg" "$name.png"
11 wget -O "$remote" -- "$baseurl/$remote"
12 rsvg-convert -f svg -w 256 -o "$name.svg.tmp" -- "$remote"
13 scour --strip-xml-prolog --remove-descriptive-elements \
14 --enable-comment-stripping --enable-viewboxing \
15 --enable-id-stripping --shorten-ids \
16 -i "$name.svg.tmp" -o "$name.svg"
17 rm -- "$remote" "$name.svg.tmp"
20 mklogo archlinux-logo archlinux-logo-only.svg &
21 mklogo archlinux-logo-text archlinux-logo-dark-scalable.svg &
22 mklogo archlinux-logo-text-dark archlinux-logo-light-scalable.svg &
24 wait
26 rsvg-convert -f png -z 1 -o archlinux-logo.png archlinux-logo.svg
27 optipng -strip all -o4 -fix -- archlinux-logo.png