blob: 8dec20e2d536ea4ac3f0795a8b8461d5db7f41b9 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
#!/bin/bash
set -x
set -e
rm -f uspace.pdf || true
rm -f uspace-test.pdf || true
latexmk -gg -pdf -jobname=uspace-test-pdflatex -interaction=nonstopmode uspace-test.tex >uspace-test-pdflatex.tex.output 2>&1 </dev/null &
latexmk -gg -xelatex -jobname=uspace-test-xelatex -interaction=nonstopmode uspace-test.tex >uspace-test-xelatex.tex.output 2>&1 </dev/null &
latexmk -gg -lualatex -jobname=uspace-test-lualatex -interaction=nonstopmode uspace-test.tex >uspace-test-lualatex.tex.output 2>&1 </dev/null &
latexmk -gg -lualatex -interaction=nonstopmode uspace.tex >uspace.tex.output 2>&1 </dev/null &
echo waiting for jobs to finish
wait
echo "uspace-test-pdflatex.tex.output:"
cat uspace-test-pdflatex.tex.output
echo "uspace-test-pdflatex.tex.output:"
cat uspace-test-xelatex.tex.output
echo "uspace-test-pdflatex.tex.output:"
cat uspace-test-lualatex.tex.output
echo "uspace.tex.output:"
cat uspace.tex.output
DOCDIR=doc/latex/uspace
LATEXDIR=tex/latex/uspace
TEMP_DIR=`mktemp -d -p "$PWD"`
read -d '' CTANIFY_MAP <<EOF || true
uspace.sty=$LATEXDIR
README.md=$DOCDIR
LICENSE=$DOCDIR
uspace-test.tex=$DOCDIR
uspace-test-pdflatex.pdf=$DOCDIR
uspace-test-xelatex.pdf=$DOCDIR
uspace-test-lualatex.pdf=$DOCDIR
uspace.tex=$DOCDIR
uspace.pdf=$DOCDIR
uspace-ctanify.sh=$DOCDIR
EOF
echo "map:" $CTANIFY_MAP
for entry in $CTANIFY_MAP ; do
file=${entry%=*}
#target_dir=${entry#*=}
cp -v "$file" "$TEMP_DIR"
done
ROOT_DIR="$PWD"
(
cd "$TEMP_DIR"
setfacl -b *
chmod +rw-x *
chmod +x uspace-ctanify.sh
#ctanify --pkgname=uspace $CTANIFY_MAP
#mv -vf uspace.tar.gz "$ROOT_DIR"
tar cvvzf "$ROOT_DIR/uspace.tar.gz" .
)
tar tvvzf uspace.tar.gz
rm -rf "$TEMP_DIR"
|