umbral9 init

This commit is contained in:
Alexander 2025-12-14 08:39:49 -05:00
parent 4475d924a1
commit 73a6112f94
3 changed files with 52 additions and 61 deletions

View file

@ -84,15 +84,11 @@ for site in acl.cool ytheleus.org; do
soup_config
rm -rf serve/
soupault
if (( $? != 0 )); then
exit $?;
fi
pushd serve
find -type f -name '*.html' -o -name '*.css' -o -name '*.svg' | xargs -0 -d\\n -I{} minify -o {} {}
popd
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