dev
sh 32 lines 686 Bytes
Raw
1 #!/bin/bash
2
3 set -x -e
4
5 cd "$(dirname "$0")"
6
7 if [[ ! -d "monero_c/.git" ]];
8 then
9 rm -rf monero_c
10 git clone https://github.com/mrcyjanek/monero_c --branch master monero_c
11 cd monero_c
12 else
13 cd monero_c
14 fi
15
16 # NOTE: Make sure to update monero_c prebuilds link in workflow files
17 # https://github.com/MrCyjaneK/monero_c/releases/download/v0.18.4.6-RC2/release-bundle.zip
18 git fetch -a
19 git checkout 5952bef2ec01b0b7e57c11613cbdc081dcd727c5
20 git reset --hard
21 git submodule update --init --force --recursive
22
23 for coin in monero wownero zano;
24 do
25 if [[ ! -f "$coin/.patch-applied" ]];
26 then
27 ./apply_patches.sh $coin
28 fi
29 done
30 cd ..
31
32 echo "monero_c source prepared".