summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/beamer-contrib/beamerappendixnote/build.sh
blob: 0bc9d37a8837c83fe6ab77ed7b46097b1bfe5026 (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
#!/bin/bash

NAME=beamerappendixnote
TEXMF_DIR=~/texmf/tex/latex/$NAME
BUILD_DIR=.tex-build

# compile sty
mkdir -p $BUILD_DIR
tex -output-directory=$BUILD_DIR $NAME.ins

# install sty
mkdir -p $TEXMF_DIR
ln -sf "`pwd`/$BUILD_DIR/$NAME.sty" $TEXMF_DIR

# compile examples
for f in example*.tex
	do xelatex -output-directory=$BUILD_DIR $f
done
xelatex -output-directory=$BUILD_DIR example*.tex
ln -sf $BUILD_DIR/example*.pdf ./

# compile documentation
xelatex -output-directory=$BUILD_DIR $NAME.dtx
xelatex -output-directory=$BUILD_DIR $NAME.dtx
ln -sf $BUILD_DIR/$NAME.pdf

# zip for upload
cd ..
rm -f zip $NAME.zip
zip $NAME.zip $NAME/*