bluesky: Start compilation

This commit is contained in:
c c 2026-09-12 13:00:52 +02:00
commit bad56eb06a
8 changed files with 3980 additions and 0 deletions

25
Bluesky problems/dev.sh Executable file
View file

@ -0,0 +1,25 @@
#! /usr/bin/env bash
cd "$(dirname "$0")"
name="$(basename "$(pwd)")"
# Check if we want to run against a certain translation
if [ $# -lt 1 ]; then
echo "Please specify the language you want to build (eg. fr)"
exit 1
fi
TARGETLANG="$1"
SOURCEFILE="main.${TARGETLANG}.typ"
t="$(mktemp --suffix=.pdf)"
if ! typst compile --root .. ./"$SOURCEFILE" "$t"; then
echo "Failed to compile $name/"$SOURCEFILE". Please fix errors and run me again."
exit 1
fi
echo "Initial compilation successful. Now starting watch mode. Opening $t"
xdg-open "$t"
typst watch --root .. ./"$SOURCEFILE" "$t"