Update build scripts

Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-09-25 21:50:05 +01:00
parent b6facbcbf9
commit 34a2740106
3 changed files with 27 additions and 0 deletions

17
nix-for-php-developers/build Executable file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -euo pipefail
NAME="$(basename "$PWD")"
out="out"
mkdir -p "$out"
marp slides.md \
--allow-local-files \
--pdf
echo ""
mv -v slides.pdf "$out/$NAME.pdf"

5
nix-for-php-developers/clean Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
rm -vfr out

5
nix-for-php-developers/watch Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
marp slides.md --preview --watch "$@"