-
Notifications
You must be signed in to change notification settings - Fork 10
/
release.sh
executable file
·46 lines (35 loc) · 898 Bytes
/
release.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
#!/bin/sh
# latexmk -pdflua emoji-doc.tex
working_dir=$PWD
tmp_dir=/tmp/emoji
tds_dir=$tmp_dir/tds
ctan_dir=$tmp_dir/emoji
tex_dir=$tds_dir/tex/latex/emoji
doc_dir=$tds_dir/doc/latex/emoji
mkdir -p $tmp_dir
mkdir -p $tds_dir
mkdir -p $ctan_dir
mkdir -p $tex_dir
mkdir -p $doc_dir
cp emoji.sty $ctan_dir
cp emoji-table.def $ctan_dir
cp emoji-doc.tex $ctan_dir
cp emoji-doc.pdf $ctan_dir
cp README.md $ctan_dir
chmod 644 $ctan_dir/*.*
cp $ctan_dir/emoji.sty $tex_dir
cp $ctan_dir/emoji-table.def $tex_dir
cp $ctan_dir/emoji-doc.tex $doc_dir
cp $ctan_dir/emoji-doc.pdf $doc_dir
cp $ctan_dir/README.md $doc_dir
cd $tds_dir
zip -q -r -9 emoji.tds.zip .
cp $tds_dir/*.zip $tmp_dir
rm -r $tds_dir
cd $tmp_dir
zip -q -r -9 emoji.zip .
cd $working_dir
mkdir -p ./release
cp -f $tmp_dir/emoji.zip ./release
cp -f $tmp_dir/emoji.tds.zip ./release
rm -r $tmp_dir