summaryrefslogtreecommitdiffstats
path: root/presentations/fri-demokratisk/images
diff options
context:
space:
mode:
Diffstat (limited to 'presentations/fri-demokratisk/images')
-rw-r--r--presentations/fri-demokratisk/images/Makefile74
1 files changed, 74 insertions, 0 deletions
diff --git a/presentations/fri-demokratisk/images/Makefile b/presentations/fri-demokratisk/images/Makefile
new file mode 100644
index 0000000..8133f95
--- /dev/null
+++ b/presentations/fri-demokratisk/images/Makefile
@@ -0,0 +1,74 @@
+SHELL = /bin/bash
+
+ALL = \
+ Richard_Stallman_at_Marlboro_College.jpg\
+ Tux-gnu-dynamic-duo.png\
+ Heckert_GNU.png\
+ Heckert_GNU.svg\
+ Tux.svg Tux.pdf
+
+all: $(ALL)
+
+template.jpg:
+ @file="$@";\
+ description="";\
+ attribution="";\
+ file_url="";\
+ if [ ! -f "$@" ]; then curl -o "$$file" "$$file_url"; fi;\
+ printf "%s\n %s\n %s\n" "$$file" "$$description" "$$attribution"
+
+Richard_Stallman_at_Marlboro_College.jpg:
+ @file="$@";\
+ description="Photo of Richard Stallman at Marlboro College 26 april 2007.";\
+ attribution="Av Jared and Corin (Richard M. Stallman) [CC BY-SA 2.0 (http://creativecommons.org/licenses/by-sa/2.0)], via Wikimedia Commons";\
+ file_url="https://upload.wikimedia.org/wikipedia/commons/c/c2/Richard_Stallman_at_Marlboro_College.jpg";\
+ if [ ! -f "$@" ]; then curl -o "$$file" "$$file_url"; fi;\
+ printf "%s\n %s\n %s\n" "$$file" "$$description" "$$attribution"
+
+Tux.pdf: Tux.svg
+ cairosvg -f pdf -o $@ $<
+ # gs -o $@ -f $@ \
+ -sDEVICE=pdfwrite -dProcessColorModel=/DeviceGray \
+ -dColorConversionStrategy=/Gray -dPDFUseOldCMS=false
+
+Tux.svg:
+ @file="$@";\
+ description="penguin Tux, the Linux Mascot";\
+ attribution="By Larry Ewing, Simon Budig, Anja Gerwinski ([1]) [Attribution], via Wikimedia Commons";\
+ file_url="https://upload.wikimedia.org/wikipedia/commons/3/35/Tux.svg";\
+ if [ ! -f "$@" ]; then curl -o "$$file" "$$file_url"; fi;\
+ printf "%s\n %s\n %s\n" "$$file" "$$description" "$$attribution"
+
+Tux-gnu-dynamic-duo.png:
+ @file="$@";\
+ description="The Dynamic Duo: The Gnu and the Penguin in flight";\
+ attribution="derivative work: Wondigoma, Free Software Foundation, Inc. (Tux-gnu-dynamic-duo.jpg) [CC-BY-SA-3.0 (http://creativecommons.org/licenses/by-sa/3.0/), GFDL (http://www.gnu.org/copyleft/fdl.html) or GPL (http://www.gnu.org/licenses/gpl.html)], via Wikimedia Commons";\
+ file_url="https://upload.wikimedia.org/wikipedia/commons/1/19/Tux-gnu-dynamic-duo.png";\
+ if [ ! -f "$@" ]; then curl -o "$$file" "$$file_url"; fi;\
+ printf "%s\n %s\n %s\n" "$$file" "$$description" "$$attribution"
+
+Heckert_GNU.png:
+ @file="$@";\
+ description="A Bold GNU Head";\
+ attribution="By Aurelio A. Heckert <aurium@gmail.com> (gnu.org) [FAL, GFDL 1.3 (http://www.gnu.org/licenses/fdl.html) or CC BY-SA 2.0 (http://creativecommons.org/licenses/by-sa/2.0)], via Wikimedia Commons";\
+ file_url="https://upload.wikimedia.org/wikipedia/commons/4/45/Heckert_GNU.png";\
+ if [ ! -f "$@" ]; then curl -o "$$file" "$$file_url"; fi;\
+ printf "%s\n %s\n %s\n" "$$file" "$$description" "$$attribution"
+
+Heckert_GNU.svg:
+ @file="$@";\
+ description="A Bold GNU Head";\
+ attribution="By Aurelio A. Heckert <aurium@gmail.com> (gnu.org) [FAL, GFDL 1.3 (http://www.gnu.org/licenses/fdl.html) or CC BY-SA 2.0 (http://creativecommons.org/licenses/by-sa/2.0)], via Wikimedia Commons";\
+ file_url="https://upload.wikimedia.org/wikipedia/commons/2/22/Heckert_GNU_white.svg";\
+ if [ ! -f "$@" ]; then curl -o "$$file" "$$file_url"; fi;\
+ printf "%s\n %s\n %s\n" "$$file" "$$description" "$$attribution"
+
+%-25.jpg: %.jpg
+ convert $< -resize 25% $@
+%-12.jpg: %.jpg
+ convert $< -resize 12% $@
+%.pdf: %.svg
+ cairosvg -f pdf -o $@ $<
+
+clean:
+ rm -f $(ALL)