well there's more nixification that could be done, but this fixes my biggest gripe atm (deps fetching)
This commit is contained in:
parent
f9ca6208bd
commit
dca96bc17d
2 changed files with 13 additions and 57 deletions
18
build.sh
18
build.sh
|
@ -1,6 +1,14 @@
|
|||
#!/bin/bash
|
||||
#! /usr/bin/env nix-shell
|
||||
#! nix-shell -i bash --pure
|
||||
#! nix-shell -p bash harfbuzz soupault woff2 jotdown python3 --pure
|
||||
|
||||
./deps.sh || exit $?
|
||||
if ! [[ -d pgvv/ ]]; then
|
||||
python3 -m venv pgvv
|
||||
source ./pgvv/bin/activate
|
||||
python3 -m pip install --upgrade pip
|
||||
pip install --upgrade pygments
|
||||
deactivate
|
||||
fi
|
||||
|
||||
find acl.cool/serve/ ytheleus.org/serve/ -type f -mmin +11 -delete
|
||||
|
||||
|
@ -16,7 +24,7 @@ find acl.cool/site/ ytheleus.org/site/ -type f \( -name '*.dj' -o -name '*.html'
|
|||
cat common_chars.txt >>all_chars.txt
|
||||
|
||||
for font in fonts/JuliaMono/*{-Light,-Regular,-SemiBold}{,Italic}.woff2; do
|
||||
./woff2/woff2_decompress "$font"
|
||||
woff2_decompress "$font"
|
||||
ttf_font="${font%.woff2}.ttf"
|
||||
|
||||
subset_ttf="${ttf_font%.ttf}-Subset.ttf"
|
||||
|
@ -26,7 +34,7 @@ for font in fonts/JuliaMono/*{-Light,-Regular,-SemiBold}{,Italic}.woff2; do
|
|||
--layout-features='*' \
|
||||
--passthrough-tables
|
||||
|
||||
./woff2/woff2_compress "$subset_ttf"
|
||||
woff2_compress "$subset_ttf"
|
||||
|
||||
rm "$subset_ttf" "$ttf_font"
|
||||
done
|
||||
|
@ -41,7 +49,7 @@ for font in \
|
|||
--layout-features='*' \
|
||||
--passthrough-tables
|
||||
|
||||
./woff2/woff2_compress "$subset_ttf"
|
||||
woff2_compress "$subset_ttf"
|
||||
|
||||
rm "$subset_ttf"
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue