From 3754ef724095941c50825869a324d528fbe676f4 Mon Sep 17 00:00:00 2001 From: Juan Placencia Date: Mon, 14 Jun 2021 20:16:04 -0500 Subject: [PATCH] Initial commit --- .editorconfig | 12 ++++++ .gitignore | 2 + Makefile | 51 +++++++++++++++++++++++++ logo.svg | 101 ++++++++++++++++++++++++++++++++++++++++++++++++++ old.svg | 85 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 251 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 logo.svg create mode 100644 old.svg diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..ad92c24 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +# For more information visit http://editorconfig.org/ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space +indent_size = 2 + +[Makefile] +indent_style = tab diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..44176d9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +temp.svg +*.png diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..aaf76ae --- /dev/null +++ b/Makefile @@ -0,0 +1,51 @@ +# Variables +ifdef dark + dark_color=$(dark) +endif +ifdef light + light_color=$(light) +endif +ifdef middle + middle_color=$(middle) +endif +ifneq ($(wildcard $(dark)),) + dark_color=transparent +endif +ifneq ($(wildcard $(light)),) + light_color=transparent +endif +ifneq ($(wildcard $(middle)),) + middle_color=transparent +endif +size?=1024 +dark_color?=black +light_color?=white +middle_color?=gray + +# Base targets +default: build + +# Build process +build: clean logo.svg + @cp logo.svg temp.svg + @sed -i 's/fill: black/:fill1:/' temp.svg + @sed -i 's/fill: white/:fill2:/' temp.svg + @sed -i 's/fill: gray/:fill3:/' temp.svg + @sed -i 's/:fill1:/fill: $(dark_color)/' temp.svg + @sed -i 's/:fill2:/fill: $(light_color)/' temp.svg + @sed -i 's/:fill3:/fill: $(middle_color)/' temp.svg + @sed -i 's/dark.png/:image1:/' temp.svg + @sed -i 's/light.png/:image2:/' temp.svg + @sed -i 's/middle.png/:image3:/' temp.svg + @sed -i 's/:image1:/$(dark)/' temp.svg + @sed -i 's/:image2:/$(light)/' temp.svg + @sed -i 's/:image3:/$(middle)/' temp.svg + convert -background none -size $(size)x$(size) temp.svg logo.png + @rm temp.svg +clean: + @rm -f logo.png temp.svg + +# Linting +lint: xmllint +xmllint: logo.svg + xmllint --noout logo.svg diff --git a/logo.svg b/logo.svg new file mode 100644 index 0000000..9e2103f --- /dev/null +++ b/logo.svg @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/old.svg b/old.svg new file mode 100644 index 0000000..987c4bc --- /dev/null +++ b/old.svg @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file