-
Notifications
You must be signed in to change notification settings - Fork 48
/
pack.sh
executable file
·85 lines (57 loc) · 1.42 KB
/
pack.sh
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/usr/bin/env bash
echo "Copying files..."
mkdir limecv
mkdir limecv/examples/
cp src/limecv.{dtx,ins} limecv/
cp examples/*.tex limecv/examples
cp examples/limecv-icon.pdf limecv/examples/
cp examples/picture.png limecv/examples/
cp README.md limecv/
cp LICENSE limecv/
echo "Building project..."
pushd limecv/
# create class file
xelatex limecv.ins
cp limecv.cls examples/
# build examples
pushd examples/
pdflatex mwe-latex.tex
pdflatex mwe-latex.tex
pdflatex mwe-latex.tex
xelatex mwe-xelatex.tex
xelatex mwe-xelatex.tex
xelatex mwe-xelatex.tex
lualatex mwe-lualatex.tex
lualatex mwe-lualatex.tex
lualatex mwe-lualatex.tex
rm *.{aux,log,gz,cls,out}
cp mwe-xelatex.pdf ../
popd
# build documentation
xelatex limecv.dtx
xelatex limecv.dtx
xelatex limecv.dtx
echo "Cleaning project..."
rm *.{aux,glo,log,out,toc,cls,idx}
rm mwe-xelatex.pdf
echo "Creating ZIP file"
#ctanify limecv.ins \
# limecv.dtx \
# limecv.pdf \
# --no-skip README.md \
# --no-skip LICENSE \
# --no-skip examples/limecv-icon.pdf \
# --no-skip examples/picture.png \
# --no-skip examples/mwe-xelatex.tex \
# --no-skip examples/mwe-xelatex.pdf \
# --no-skip examples/mwe-latex.tex \
# --no-skip examples/mwe-latex.pdf \
# --no-skip examples/mwe-lualatex.tex \
# --no-skip examples/mwe-lualatex.pdf
popd
COPYFILE_DISABLE=1 tar -pczf limecv.tar.gz limecv/
echo "Cleaning..."
rm -rf limecv
echo "Contents:"
tar -ztvf limecv.tar.gz
echo "Done."