no longer leaving behind garbage in the form of serve_xyz

This commit is contained in:
Alexander 2025-06-16 16:20:15 -04:00
parent 015dfd1769
commit 38d366c895
3 changed files with 27 additions and 13 deletions

View file

@ -3,11 +3,11 @@
#! nix-shell -p bash harfbuzz soupault woff2 jotdown python3 --pure
if ! [[ -d pgvv/ ]]; then
python3 -m venv pgvv
source ./pgvv/bin/activate
python3 -m pip install --upgrade pip
pip install --upgrade pygments
deactivate
python3 -m venv pgvv
source ./pgvv/bin/activate
python3 -m pip install --upgrade pip
pip install --upgrade pygments
deactivate
fi
function soup_config {
@ -58,20 +58,26 @@ pygmentize -f html -S algol_nu | grep -v 'line-height' >css/code.css
builtin pushd acl.cool
soup_config
soupault
NEXT_DIR="serve_$(date +%s)"
CUR_DIR=$(find . -maxdepth 1 -type d -regex './serve_[0-9]+')
echo "$PREV_DIR"
cp -a serve "$NEXT_DIR"
ln -sfn "$NEXT_DIR" serve_
for d in $CUR_DIR; do
rm -r $d
done
popd
builtin pushd ytheleus.org
soup_config
soupault
NEXT_DIR="serve_$(date +%s)"
CUR_DIR=$(find . -maxdepth 1 -type d -regex './serve_[0-9]+')
cp -a serve "$NEXT_DIR"
ln -sfn "$NEXT_DIR" serve_
for d in $CUR_DIR; do
rm -r $d
done
popd
deactivate