-
Notifications
You must be signed in to change notification settings - Fork 0
/
arxiv.sh
30 lines (23 loc) · 919 Bytes
/
arxiv.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
#!/bin/bash
mkdir arxiv || { echo "you have an existing arxiv/ directory \
that we don't want to overwrite, please delete it first"
exit 1
}
# the actual sources
cp paper.scrbl arxiv/
cp bib.rkt arxiv/
cp *.sty arxiv/
# the following are not available on my machines so I just download them
# (arxiv may also not have them)
wget -P arxiv/ http://www.sigplan.org/sites/default/files/acmart/current/acmart.cls
wget -P arxiv http://mirror.unl.edu/ctan/macros/latex/contrib/harpoon/harpoon.sty
wget -P arxiv/ http://web.mit.edu/ghudson/dev/nokrb/third/tetex/texmf/tex/latex/misc/ccaption.sty
# the stuff arXiv knows how to handle
cp paper.tex arxiv/
cp pict*.pdf arxiv/
# compressed for size
sh compress.sh arxiv/*.pdf
# and self-contained build instructions
echo "pdflatex paper.tex" > arxiv/build.sh
zip -r arxiv arxiv
echo "feel free to test the packed source in arxiv/ ('sh build.sh'), archive is arxiv.zip"