diff options
| author | kx <kx@radix-linux.su> | 2026-10-09 18:00:15 +0300 |
|---|---|---|
| committer | kx <kx@radix-linux.su> | 2026-10-09 18:00:15 +0300 |
| commit | 065da3509019b15dd0e678072e6be629e5330bef (patch) | |
| tree | 69c934c9e786ac048b4fbe8f4c4c5571661521f4 /doc/src/build-docs.sh | |
| parent | d130fe27fa753be02ed76fd9b277aa3c3d928eb9 (diff) | |
| download | libmcpu-0.4.0.tar.xz | |
Version 0.4.00.4.0
Diffstat (limited to 'doc/src/build-docs.sh')
| -rwxr-xr-x | doc/src/build-docs.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/src/build-docs.sh b/doc/src/build-docs.sh new file mode 100755 index 0000000..5078ac3 --- /dev/null +++ b/doc/src/build-docs.sh @@ -0,0 +1,26 @@ +#!/bin/bash +set -e + +DIR=$(cd -- "$(dirname -- "$0")" && pwd) +DOC=$(cd -- "$DIR/.." && pwd) +BUILD="$DIR/.build" + +rm -rf "$BUILD" +mkdir -p "$BUILD" +cd "$DIR" + +build_one() +{ + local base="$1" + local pass + for pass in 1 2 3; do + xelatex -interaction=nonstopmode -halt-on-error \ + -output-directory="$BUILD" "$base.tex" >"$BUILD/$base.pass$pass.log" + done + cp -f "$BUILD/$base.pdf" "$DOC/$base.pdf" +} + +build_one libmcpu-bytecode-architecture-ru +build_one libmcpu-melf-abi-ru + +rm -rf "$BUILD" |
