Tools for generating the Volumetric Regimes book https://volumetricregimes.xyz/ (wiki-to-print, using Paged.js)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.4 KiB

3 years ago
all: run
install:
python3 -m venv venv
./venv/bin/pip3 install jinja2
./venv/bin/pip3 install markupsafe==2.0.1
3 years ago
run:
./venv/bin/python3 -m http.server
3 years ago
update: wiki
wiki:
# ---
# update the materials from the wiki, save it as Unfolded.html
./venv/bin/python3 update.py
@echo "Pulling updates from the wiki: Unfolded (wiki) --> Unfolded.html (file)"
multi:
# ---
# multistamp Multi Remix on top of the pdf
@pdfunite multi-remix/multi-remix.pdf multi-remix/multi-remix-empty.pdf multi-remix/multi-remix.pdf multi-remix/multi-remix-empty.pdf multi-remix/multi-remix-stamp.pdf
@pdftk Unfolded.pdf multistamp multi-remix/multi-remix-stamp.pdf output Unfolded-with-Multi.pdf
interior: multi
# ---
# take cover out of the PDF (only select pages 3-344 + 2 extra white pages)
@pdftk Unfolded-with-Multi.pdf cat 3-346 output Unfolded-interior.pdf
3 years ago
upload:
# ---
# upload Paged.js preview to the Varia server
3 years ago
scp -r Unfolded.html css js fonts varia:public_html/volumetric-regimes/
uploadimages:
# ---
# upload the images folder to the Varia server
scp -r images varia:public_html/volumetric-regimes/
uploadpdf:
# ---
# upload interior PDF to the Varia server
./tools/resample Unfolded-interior.pdf 150
scp Unfolded-interior-resampled.pdf varia:public_html/volumetric-regimes/Unfolded.pdf
@echo "Uploaded to: https://vvvvvvaria.org/~mb/volumetric-regimes/Unfolded.pdf"