|
|
|
all: run
|
|
|
|
|
|
|
|
install:
|
|
|
|
python3 -m venv venv
|
|
|
|
./venv/bin/pip3 install jinja2
|
|
|
|
./venv/bin/pip3 install markupsafe==2.0.1
|
|
|
|
|
|
|
|
run:
|
|
|
|
./venv/bin/python3 -m http.server
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
upload:
|
|
|
|
# ---
|
|
|
|
# upload Paged.js preview to the Varia server
|
|
|
|
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"
|
|
|
|
|