Skip to content

Commit 28529c3

Browse files
committed
save scripts
1 parent aede5a5 commit 28529c3

File tree

5 files changed

+150
-6
lines changed

5 files changed

+150
-6
lines changed

build_all.log

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
Building schneider2021re
2+
/Users/koustuvs/Documents/RC-2020/schneider2021re/journal
3+
Building li2021reimplementation
4+
/Users/koustuvs/Documents/RC-2020/li2021reimplementation/journal
5+
Building sundar2021reproducibility
6+
/Users/koustuvs/Documents/RC-2020/sundar2021reproducibility/journal
7+
Building mizrahi2021re
8+
/Users/koustuvs/Documents/RC-2020/mizrahi2021re/journal
9+
Building menon2021re
10+
/Users/koustuvs/Documents/RC-2020/menon2021re/journal
11+
Building mentes2021re
12+
/Users/koustuvs/Documents/RC-2020/mentes2021re/journal
13+
Building baanders2021reproducibility
14+
/Users/koustuvs/Documents/RC-2020/baanders2021reproducibility/journal
15+
Building holdijk2021re
16+
/Users/koustuvs/Documents/RC-2020/holdijk2021re/journal
17+
Building kim2021re
18+
/Users/koustuvs/Documents/RC-2020/kim2021re/journal
19+
Building rijsdijk2021reproducing
20+
/Users/koustuvs/Documents/RC-2020/rijsdijk2021reproducing/journal
21+
Building mohtashami2021reproducibility
22+
/Users/koustuvs/Documents/RC-2020/mohtashami2021reproducibility/journal
23+
Building verhoef2021reproducibility
24+
/Users/koustuvs/Documents/RC-2020/verhoef2021reproducibility/journal
25+
Building harrison2021learning
26+
/Users/koustuvs/Documents/RC-2020/harrison2021learning/journal
27+
Building arvind2021reproducibility
28+
/Users/koustuvs/Documents/RC-2020/arvind2021reproducibility/journal
29+
Building verma2021explaining
30+
/Users/koustuvs/Documents/RC-2020/verma2021explaining/journal
31+
Building sheverdin2021reproducibility
32+
/Users/koustuvs/Documents/RC-2020/sheverdin2021reproducibility/journal
33+
Building verhoeven2021replication
34+
/Users/koustuvs/Documents/RC-2020/verhoeven2021replication/journal
35+
Building garg2021re
36+
/Users/koustuvs/Documents/RC-2020/garg2021re/journal
37+
Building albanis2021on
38+
/Users/koustuvs/Documents/RC-2020/albanis2021on/journal
39+
Building liiv2021a
40+
/Users/koustuvs/Documents/RC-2020/liiv2021a/journal
41+
Building rodas2021rehamiltonian
42+
/Users/koustuvs/Documents/RC-2020/rodas2021rehamiltonian/journal
43+
Building p2021embedkgqa
44+
/Users/koustuvs/Documents/RC-2020/p2021embedkgqa/journal
45+
Building reijnaers2021re
46+
/Users/koustuvs/Documents/RC-2020/reijnaers2021re/journal

build_all.sh

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,20 @@ for key in $KEYS; do
77
echo "Building ${key}"
88
cd $key/journal/
99
echo $(pwd)
10-
make clean
11-
# Remove the existing metadata.tex for \codeSWH to be generated
12-
# metadata.tex will be generated from metadata.yaml using yaml-to-latex.py
13-
rm metadata.tex
14-
make > build.log
15-
echo "Build complete"
10+
# make clean
11+
# # Remove the existing metadata.tex for \codeSWH to be generated
12+
# # metadata.tex will be generated from metadata.yaml using yaml-to-latex.py
13+
# rm metadata.tex
14+
# make > build.log
15+
# echo "Build complete"
16+
rm article.aux
17+
rm article.bbl
18+
rm article.blg
19+
rm article.fdb_latexmk
20+
rm article.fls
21+
rm article.out
22+
rm article.log
23+
rm article.run.xml
24+
rm article.bcf
1625
cd ../..
1726
done

build_verify.sh

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/bash
2+
3+
build_open() {
4+
rm metadata.tex
5+
make clean
6+
make
7+
cleanup_dir
8+
open article.pdf
9+
}
10+
11+
cleanup_dir() {
12+
rm article.aux
13+
rm article.bbl
14+
rm article.blg
15+
rm article.fdb_latexmk
16+
rm article.fls
17+
rm article.out
18+
rm article.log
19+
rm article.run.xml
20+
rm article.bcf
21+
}
22+
23+
24+
inp=$1
25+
echo $inp
26+
if [ $inp = 'editorial' ]; then
27+
echo "Editorial processing"
28+
cd editorial/
29+
build_open
30+
else
31+
echo "Paper $inp processing"
32+
cd $inp/journal/
33+
build_open
34+
fi

cleanup.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
cleanup_dir() {
4+
rm article.aux
5+
rm article.bbl
6+
rm article.blg
7+
rm article.fdb_latexmk
8+
rm article.fls
9+
rm article.out
10+
rm article.log
11+
rm article.run.xml
12+
rm article.bcf
13+
}
14+
15+
inp=$1
16+
echo $inp
17+
if [ $inp = 'editorial' ]; then
18+
echo "Editorial processing"
19+
cd editorial/
20+
cleanup_dir
21+
else
22+
echo "Paper $inp processing"
23+
cd $inp/journal/
24+
cleanup_dir
25+
fi

publish.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
3+
MODE=sandbox
4+
inp=$1
5+
echo $inp
6+
7+
# Prepublish article
8+
# if [ $inp = 'editorial' ]; then
9+
# echo "Editorial processing"
10+
# ./../articles/process.py --$MODE --metadata editorial/metadata.yaml --pdf editorial/article.pdf
11+
# else
12+
# echo "Paper $inp processing"
13+
# loc=$inp/journal/
14+
# ./../articles/process.py --$MODE --metadata $loc/metadata.yaml --pdf $loc/article.pdf
15+
16+
# fi
17+
18+
# Publish articles
19+
20+
if [ $inp = 'editorial' ]; then
21+
echo "Editorial processing"
22+
./../articles/publish.py --$MODE --metadata editorial/metadata.yaml --pdf editorial/article.pdf
23+
else
24+
echo "Paper $inp processing"
25+
loc=$inp/journal/
26+
./../articles/publish.py --$MODE --metadata $loc/metadata.yaml --pdf $loc/article.pdf
27+
28+
fi
29+
30+

0 commit comments

Comments
 (0)