]> git.decadent.org.uk Git - stable-kernel-talk.git/commitdiff
Add S5 makefile copied from debian-kernel talk
authorBen Hutchings <ben@decadent.org.uk>
Sun, 3 Feb 2013 00:24:20 +0000 (01:24 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 3 Feb 2013 00:24:20 +0000 (01:24 +0100)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..7c39a4f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
+all: s5-checksums.txt
+
+clean:
+       rm -rf s5-checksums.txt s5-blank *.dia.svg *.xcf.png
+
+s5-checksums.txt: /usr/share/s5/s5-blank
+       s5 blank .
+       sed -i 's/url(bodybg.gif)//; s/\btext-transform: capitalize\s*;//' \
+               s5-blank/ui/default/pretty.css
+
+%.dia.svg: %.dia
+       dia --export=$@ $<
+
+%.xcf.png: %.xcf
+       gimp -i -d -b '                                                 '\
+'(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE "$<" "$<")))    '\
+'       (layer (car (gimp-image-flatten image))))                      '\
+' (gimp-file-save RUN-NONINTERACTIVE image layer "$@" "$@"))           '\
+'(gimp-quit 0)'
+
+pub:
+       rm -rf pub
+       mkdir pub
+       cp -R -t pub index.html s5-blank $(wildcard *.svg *.png)
+
+.PHONY: all clean pub