git ssb

0+

cel / ssb-invitation-cards



Tree:
📄.gitignore
📄LICENSE
📄Makefile
📄README.md
📄card.ps
📄cards.ps
📄common.ps
📄config.example.ps
📄gencard.sh
📄gencards.sh
📄geninvitecode.sh
📄geninvitecodepage.sh
📄geninvitecodepages.sh
📄geninvitecodepaths.sh
📄invite-letterhead.jpg
📄invite.html
📄rainbow-hermies-strong-border.eps
📄small-hermes-hearts-0.eps
📁themes
📄urls.example
README.md

ssb-invitation-cards

Requirements

Usage

count=10                    # Number of codes/cards to generate. Should be a multiple of 10.
dir=~/www                  # Where to save the invite code pages
base=https://example.com    # URL for the directory of invite code pages

./geninvitecodepaths.sh "$count" | tee -a codepaths | ./geninvitecodepages.sh "$dir" "$base" > urls

The invite code pages use invite.html as a template, and get some values from config.ps. If you change invite.html or config.ps and want to regenerate the invite code pages (while keeping the same invite codes), run:

./geninvitecodepages "$dir" "$base" < codepaths | wc -l

That should output the number of pages written.

./gencards.sh > cards.pdf < urls

Development notes

To preview cards.pdf while editing cards.ps, run make. It will launch mupdf or reload an existing mupdf process.

Uncomment DrawBorder to get a thin border around each card on the page.

To convert a SVG file to EPS format, use rsvg-convert (from librsvg2-bin package on Debian):

rsvg-convert rainbow-ssb.svg -f eps -o rainbow-ssb.eps

To convert other formats, use convert (from ImageMagick).

If you want to include a JPEG file into cards.ps, there is a better way than using EPS - For an example, see &UG1Pxa6....

License

© 2018 cel
Creative Commons BY-SA 4.0

Hermies icon by Matt: %7AkRFfL..., original by Paul: %6Ykl7b5...

Small hermes hearts icon, and invite letterhead, by Angelica: %9X92J7gS6NYrPwRXxmmpNUM7esI/XXi5j7ZSx2cyK1k=.sha256 %w1wPSI8...

Built with git-ssb-web