git ssb

0+

cel / ssb-invitation-cards



Commit 04bc1183cb84befc323d264801480627dd239ead

Add single-card make target

cel committed on 1/25/2019, 10:03:48 PM
Parent: 7370815b9a6e1bae472e62c591ddd0fc0e222b57

Files changed

.gitignorechanged
Makefilechanged
card.psadded
gencard.shadded
.gitignoreView
@@ -1,5 +1,7 @@
11 view-cards.pid
2 +view-card.pid
23 cards.pdf
4 +card.pdf
35 urls
46 config.ps
57 codepaths
MakefileView
@@ -1,8 +1,12 @@
11 THEME = themes/original.ps
22
33 all: view-cards.pid
4 +#all: view-card.pid
45
6 +view-card.pid: card.pdf
7 + test -s $@ && kill -HUP $$(cat $@) 2>/dev/null && touch $@ || (mupdf -r 144 $< & echo $$! > $@)
8 +
59 view-cards.pid: cards.pdf
610 test -s $@ && kill -HUP $$(cat $@) 2>/dev/null && touch $@ || (mupdf -r 120 $< & echo $$! > $@)
711
812 urls:
@@ -13,8 +17,11 @@
1317
1418 cards.pdf: gencards.sh cards.ps config.ps common.ps urls Makefile $(THEME)
1519 ./gencards.sh $@ $(THEME) < urls
1620
21 +card.pdf: gencard.sh cards.ps config.ps common.ps Makefile $(THEME)
22 + ./gencard.sh $@ $(THEME)
23 +
1724 clean:
1825 rm -f cards.pdf
1926
2027 .PHONY: clean
card.psView
@@ -1,0 +1,11 @@
1 +%!PS-Adobe-3.0
2 +%%Title: SSB Invitation Card
3 +%%LanguageLevel: 2
4 +%%EndComments
5 +%%BeginProlog
6 +
7 +/url () def
8 +DrawCardFront
9 +showpage
10 +DrawCardBack
11 +showpage
gencard.shView
@@ -1,0 +1,3 @@
1 +#!/bin/sh
2 +cd "$(dirname "$0")"
3 +exec gs -q -dNOSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile="${1?output.pdf}" -r72 -dDEVICEWIDTHPOINTS=252 -dDEVICEHEIGHTPOINTS=144 -dPDFFitPage -f config.ps -f common.ps -f "${2?theme.pdf}" -f card.ps

Built with git-ssb-web