blob: 5078ac3f3c61589023d2b3a4a8a40a2b812f0b02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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"
|