2021-06-16 16:46:25 +02:00
|
|
|
all: run
|
|
|
|
|
2021-09-01 13:07:54 +02:00
|
|
|
install:
|
|
|
|
python3 -m venv venv
|
2022-06-09 10:06:28 +02:00
|
|
|
./venv/bin/pip3 install jinja2
|
|
|
|
./venv/bin/pip3 install markupsafe==2.0.1
|
2021-09-01 13:07:54 +02:00
|
|
|
|
2021-06-16 16:46:25 +02:00
|
|
|
run:
|
2022-06-09 10:06:28 +02:00
|
|
|
./venv/bin/python3 -m http.server
|
2021-06-16 16:46:25 +02:00
|
|
|
|
2022-01-12 15:31:07 +01:00
|
|
|
update: wiki
|
2021-09-01 13:07:54 +02:00
|
|
|
|
|
|
|
wiki:
|
|
|
|
# ---
|
|
|
|
# update the materials from the wiki, save it as Unfolded.html
|
2022-06-09 10:06:28 +02:00
|
|
|
./venv/bin/python3 update.py
|
2021-11-03 19:33:17 +01:00
|
|
|
@echo "Pulling updates from the wiki: Unfolded (wiki) --> Unfolded.html (file)"
|
2021-09-01 13:07:54 +02:00
|
|
|
|
2021-11-10 23:14:54 +01:00
|
|
|
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
|
|
|
|
|
2022-06-09 10:06:28 +02:00
|
|
|
interior: multi
|
|
|
|
# ---
|
2022-09-08 11:59:31 +02:00
|
|
|
# take cover out of the PDF (only select pages 3-338 + 2 extra white pages)
|
2022-08-30 19:01:52 +02:00
|
|
|
@pdftk Unfolded-with-Multi.pdf cat 3-342 output Unfolded-interior.pdf
|
2022-06-09 10:06:28 +02:00
|
|
|
|
2022-09-08 13:44:06 +02:00
|
|
|
webversion:
|
|
|
|
# ---
|
|
|
|
# multistamp Multi Remix on top of the pdf
|
|
|
|
@pdfunite multi-remix/multi-remix-web.pdf multi-remix/multi-remix-empty.pdf multi-remix/multi-remix-web.pdf multi-remix/multi-remix-empty.pdf multi-remix/multi-remix-web-stamp.pdf
|
|
|
|
@pdftk Unfolded.pdf multistamp multi-remix/multi-remix-web-stamp.pdf output Unfolded-with-Multi.pdf
|
|
|
|
# ---
|
|
|
|
# taking out the extra 2 empty pages
|
|
|
|
@pdftk Unfolded-with-Multi.pdf cat 1-340 343-344 output Unfolded-web.pdf
|
|
|
|
# ---
|
|
|
|
# resizing the web PDF
|
|
|
|
@sh resample.sh Unfolded-web.pdf 300
|
|
|
|
@mv Unfolded-web-resampled.pdf Unfolded-web.pdf
|
|
|
|
|
|
|
|
coverimage:
|
|
|
|
# ---
|
|
|
|
# taking only the cover page from the PDF
|
|
|
|
@pdftk Unfolded-web.pdf cat 1 output Unfolded-cover-web.pdf
|
|
|
|
# ---
|
|
|
|
# turning the cover into CMYK
|
|
|
|
@sh rgb2cmyk.sh Unfolded-cover-web.pdf overprint
|
|
|
|
# ---
|
|
|
|
# saving the cover as PNG file
|
|
|
|
@pdftoppm Unfolded-cover-web-CMYK.pdf -png Unfolded-cover-web-CMYK
|
|
|
|
|
2021-06-16 16:46:25 +02:00
|
|
|
upload:
|
2022-06-27 13:28:09 +02:00
|
|
|
# ---
|
|
|
|
# upload Paged.js preview to the Varia server
|
2021-06-16 16:46:25 +02:00
|
|
|
scp -r Unfolded.html css js fonts varia:public_html/volumetric-regimes/
|
|
|
|
|
2022-06-27 13:28:09 +02:00
|
|
|
uploadimages:
|
|
|
|
# ---
|
|
|
|
# upload the images folder to the Varia server
|
|
|
|
scp -r images varia:public_html/volumetric-regimes/
|
|
|
|
|
2022-04-22 14:49:55 +02:00
|
|
|
uploadpdf:
|
2022-06-27 13:28:09 +02:00
|
|
|
# ---
|
|
|
|
# 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
|
2022-04-22 14:49:55 +02:00
|
|
|
@echo "Uploaded to: https://vvvvvvaria.org/~mb/volumetric-regimes/Unfolded.pdf"
|
|
|
|
|