Update build scripts
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
b6facbcbf9
commit
34a2740106
3 changed files with 27 additions and 0 deletions
17
nix-for-php-developers/build
Executable file
17
nix-for-php-developers/build
Executable 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
5
nix-for-php-developers/clean
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
rm -vfr out
|
5
nix-for-php-developers/watch
Executable file
5
nix-for-php-developers/watch
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
marp slides.md --preview --watch "$@"
|
Loading…
Add table
Add a link
Reference in a new issue