File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 77node_modules
88svg /* .pdf
99book.pdf
10+ rendered.pdf
1011print_version.pdf
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ IMGDIR = generated/images
33# svgs to be converted to png
44SVGS := $(patsubst % .svg,$(IMGDIR ) /% .png,$(wildcard svg/* .svg) )
55
6+ hash := $(shell git rev-parse HEAD)
67
78# one rule to make them all
89all : main
3031 convert back.png -background white -flatten back.jpg
3132
3233publish :
33- pdftk A=book.pdf B=inner.pdf C=blank.pdf cat A1 B1 C1 A2-end output print_version.pdf
34+ curl https://www.gitbook.com/download/pdf/book/ncrcoe/java-for-small-teams/v/${hash} > rendered.pdf
35+ pdftk A=rendered.pdf B=inner.pdf C=blank.pdf cat A1 B1 C1 A2-end output print_version.pdf
3436
3537clean :
3638 rm $(SVGS )
You can’t perform that action at this time.
0 commit comments