|
|
@@ -2,16 +2,11 @@
|
|
|
|
|
|
# Clone a specific branch and commit of a repo
|
|
|
clone() {
|
|
|
- branch="$1"
|
|
|
- url="$2"
|
|
|
- dirname="$3"
|
|
|
- commit="$4"
|
|
|
+ url="$1"
|
|
|
+ dirname="$2"
|
|
|
+ commit="$3"
|
|
|
|
|
|
- if [ -n "$branch" ]; then
|
|
|
- git clone -b "$branch" "$url" "$dirname" || return 1
|
|
|
- else
|
|
|
- git clone "$url" "$dirname" || return 1
|
|
|
- fi
|
|
|
+ git clone "$url" "$dirname" || return 1
|
|
|
|
|
|
cd "$dirname" && \
|
|
|
git checkout "$commit" && \
|
|
|
@@ -20,7 +15,7 @@ clone() {
|
|
|
|
|
|
## Belarus 2020-2021
|
|
|
|
|
|
-clone main https://git-crysp.uwaterloo.ca/vvecna/belarus-2020-2021 belarus-2020-2021 d54b2f4a0a9612088623a67ed30c9f5183a10de5
|
|
|
+clone https://git-crysp.uwaterloo.ca/vvecna/belarus-2020-2021 belarus-2020-2021 d54b2f4a0a9612088623a67ed30c9f5183a10de5
|
|
|
|
|
|
## Build docker for analysis
|
|
|
|
|
|
@@ -29,13 +24,13 @@ docker build -t tp-analysis .
|
|
|
## Lox/Troll Patrol
|
|
|
|
|
|
# Set up dependencies
|
|
|
-clone "" https://github.com/arkworks-rs/spongefish spongefish fcc277f8a857fdeeadd7cca92ab08de63b1ff1a1 && \
|
|
|
-clone victor/artifact https://github.com/sigma-rs/sigma-proofs sigma-proofs 50716322b5b0d8a2b03c4637d5f4a8ee092c8b36 && \
|
|
|
-clone artifact https://git-crysp.uwaterloo.ca/SigmaProtocol/sigma-compiler sigma-compiler e00bc5aee794bccad5e1ae4383ad83c2e7815340 && \
|
|
|
-clone artifact https://git-crysp.uwaterloo.ca/SigmaProtocol/cmz cmz 07072dcd2c123aa7e9b56027cd7804fbe67c9bfb && \
|
|
|
-clone lox-original https://git-crysp.uwaterloo.ca/vvecna/lox-troll-patrol-extension.git lox-old 2b951fe877f9ea39b4adf0faf18be312ef25ace9 && \
|
|
|
-clone lox-extension https://git-crysp.uwaterloo.ca/vvecna/lox-troll-patrol-extension.git lox-new f0c0729b139a158e7ace88d4ea6de66b42d9b2c3 && \
|
|
|
-clone main https://git-crysp.uwaterloo.ca/vvecna/lox-troll-patrol-extension.git troll-patrol 1f7dc060c8984a8fcda681a190df902e50610111
|
|
|
+clone https://github.com/arkworks-rs/spongefish spongefish fcc277f8a857fdeeadd7cca92ab08de63b1ff1a1 && \
|
|
|
+clone https://github.com/sigma-rs/sigma-proofs sigma-proofs 50716322b5b0d8a2b03c4637d5f4a8ee092c8b36 && \
|
|
|
+clone https://git-crysp.uwaterloo.ca/SigmaProtocol/sigma-compiler sigma-compiler e00bc5aee794bccad5e1ae4383ad83c2e7815340 && \
|
|
|
+clone https://git-crysp.uwaterloo.ca/SigmaProtocol/cmz cmz 07072dcd2c123aa7e9b56027cd7804fbe67c9bfb && \
|
|
|
+clone https://git-crysp.uwaterloo.ca/vvecna/lox-troll-patrol-extension.git lox-old 2b951fe877f9ea39b4adf0faf18be312ef25ace9 && \
|
|
|
+clone https://git-crysp.uwaterloo.ca/vvecna/lox-troll-patrol-extension.git lox-new 349f92f4c4706e30b6960408ae167227c6b8ec82 && \
|
|
|
+clone https://git-crysp.uwaterloo.ca/vvecna/lox-troll-patrol-extension.git troll-patrol 1165196768a4c7f2a975bc38f799cbac2d557c03
|
|
|
|
|
|
# Copy Dockerfile to lox-new and troll-patrol
|
|
|
cp conf/Dockerfile lox-new/
|