mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 06:46:36 +01:00
Dia is from Stephen Cuppett, replacing the PNG he'd submitted via
39a926a918 (Adding initial user doc/guide & materials for UPI AWS
installation, 2019-03-12, #1408).
We aren't using the full file with all the layers yet, but I'm
building it anyway because folks without Dia may still want to look at
it ;).
SVGs generated with:
$ dia --version
Dia version 0.97.3, compiled 18:02:21 Feb 11 2017
relink-dia.py embeds the referenced icons in the SVG with def and use
[1,2] to avoid icon URIs like:
file:///.../openshift/installer/docs/user/aws/images/./AWS-Architecture-Icons_SVG/Light-BG/_General%20AWS/AWS-General_AWS-Cloud_light-bg.svg
Ideally Dia would have a way to do this sort of thing automatically
with a command-line switch, but if it does, I can't find it.
[1]: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/def
[2]: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/use
21 lines
733 B
Makefile
21 lines
733 B
Makefile
all: install_upi.svg install_upi_vpc.svg
|
|
|
|
install_upi.svg: install_upi.dia relink-dia.py AWS-Architecture-Icons_SVG/.touch
|
|
dia --export $@ $<
|
|
./relink-dia.py $@
|
|
|
|
install_upi_vpc.svg: install_upi.dia relink-dia.py AWS-Architecture-Icons_SVG/.touch
|
|
dia -L 'Availability Zones,VPC,Subnets,Route53 (Private)' --export $@ $<
|
|
./relink-dia.py $@
|
|
|
|
# URI from https://aws.amazon.com/architecture/icons/
|
|
AWS-Architecture-Icons_SVG.zip:
|
|
curl https://d1.awsstatic.com/webteam/architecture-icons/AWS-Architecture-Icons_SVG_20190131.f8dacae00681382ab91d59994de429d6e9a680bc.zip >$@
|
|
|
|
AWS-Architecture-Icons_SVG/.touch: AWS-Architecture-Icons_SVG.zip
|
|
unzip -o $<
|
|
touch $@
|
|
|
|
clean:
|
|
rm -rf install_upi*.svg AWS-Architecture-Icons_SVG* __MACOSX
|