Download:
child 5:c7cb6267a670
parent 3:b876b898560b
4:ca30a5bb823a
Anton Shestakov <engored@ya.ru>, Sun, 14 Sep 2014 23:30:24 +0900
Avoid having to add a make cheatsheet by not using make. Problem solved.

2 файлов изменено, 6 вставок(+), 20 удалений(-) [+]
Makefile file | annotate | diff | comparison | revisions
make.sh file | annotate | diff | comparison | revisions
--- a/Makefile Sun Sep 14 23:07:17 2014 +0900
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-all: vim python
-
-vim: vim.html vim.png
-
-vim.html:
- ./rst2cheatsheet.py vim.rst > vim.html
-
-vim.png: vim.html
- ./html2png.py "file://$(realpath vim.html)" vim.png
-
-python: python.html python.png
-
-python.html:
- ./rst2cheatsheet.py python.rst > python.html
-
-python.png: python.html
- ./html2png.py "file://$(realpath python.html)" python.png
-
-clean:
- rm {vim,python}.{html,png}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/make.sh Sun Sep 14 23:30:24 2014 +0900
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+for domain in vim python ; do
+ ./rst2cheatsheet.py "$domain.rst" > "$domain.html"
+ ./html2png.py "file://$(realpath "$domain.html")" "$domain.png"
+done