File tree 1 file changed +10
-6
lines changed
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ if [[ $VERSION != $CUR_VERSION ]] {
49
49
echo $VERSION already downloaded.
50
50
}
51
51
52
- ORI_PWD=` pwd`
53
52
echo current dir: $PWD
54
53
55
54
for i ($ZIP_URL ){
@@ -58,14 +57,19 @@ for i ($ZIP_URL){
58
57
file_name=${i: t}
59
58
unzip -o $file_name
60
59
dir_name=${file_name% .zip}
60
+
61
+ # build latest release version on github
61
62
cd $dir_name
62
63
rm -f ' *.pdf *.aux'
63
- latexmk -synctex=1 -interaction=nonstopmode -file-line-error -xelatex main.tex
64
- cd ../
65
- cd ../$dir_name
64
+ latexmk
65
+ cd -
66
+
67
+ # build current version
68
+ cd ../templates/$dir_name
66
69
rm -f ' *.pdf *.aux'
67
- latexmk -synctex=1 -interaction=nonstopmode -file-line-error -xelatex main.tex
68
- cd $ORI_PWD
70
+ latexmk
71
+ cd -
72
+
69
73
diff-pdf --view ./$dir_name /main.pdf ../templates/$dir_name /main.pdf
70
74
echo " ============== end $i ==============="
71
75
}
You can’t perform that action at this time.
0 commit comments