File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ OUTPUT=$(realpath "$2") #~/arxiv/htmls/1701/1701.xyz.html
6
6
OUTPUT_DIR=$( dirname " $OUTPUT " ) # ~/arxiv/htmls/1701
7
7
FILENAME=$( basename " $OUTPUT " ) # 1701.xyz.html
8
8
9
- docker run --rm -v $PWD /latex2html.sh:/files/latex2html.sh:ro -v " $SOURCE_DIR " :/files/ro-source:ro -v " $OUTPUT_DIR " :/files/htmls niccokunzmann/ci-latex /files/latex2html.sh " $FILENAME "
9
+ docker run --rm -v $PWD /latex2html.sh:/files/latex2html.sh:ro -v " $SOURCE_DIR " :/files/ro-source:ro -v " $OUTPUT_DIR " :/files/htmls arxivvanity/engrafo /files/latex2html.sh " $FILENAME "
Original file line number Diff line number Diff line change 2
2
OUTNAME=" $1 "
3
3
echo $OUTNAME
4
4
RO_SOURCE_DIR=" /files/ro-source"
5
- SOURCE_DIR=" /files/source"
6
5
OUTPUT_DIR=" /files/htmls"
7
6
8
- cp -r " $RO_SOURCE_DIR " " $SOURCE_DIR "
9
- cd " $SOURCE_DIR "
10
- MAINTEX=$( find . -type f -iname " *.tex" -print0 | xargs -0 grep -l documentclass | head -1)
11
- echo $MAINTEX
12
- timeout -s KILL 60 htlatex " $MAINTEX " ' ' ' ' ' ' ' -interaction=batchmode'
7
+ timeout -s KILL 120 engrafo " $RO_SOURCE_DIR " /files/output
13
8
14
- FILENAME=$( basename $MAINTEX )
15
- FILENAME=" ${FILENAME% .tex} .html"
16
- cp " $SOURCE_DIR /$FILENAME " " $OUTPUT_DIR /$OUTNAME "
9
+ cp /files/output/index.html " $OUTPUT_DIR /$OUTNAME "
You can’t perform that action at this time.
0 commit comments