mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 03:59:23 +00:00
32 lines
580 B
Bash
32 lines
580 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -x -e
|
||
|
|
||
|
cd "$(dirname "$0")"
|
||
|
|
||
|
if [[ ! -d "monero_c" ]];
|
||
|
then
|
||
|
git clone https://github.com/mrcyjanek/monero_c --branch rewrite-wip
|
||
|
cd monero_c
|
||
|
git checkout eaa7bdb8be3479418445ddb18bf33d453f64afcf
|
||
|
git reset --hard
|
||
|
git submodule update --init --force --recursive
|
||
|
./apply_patches.sh monero
|
||
|
./apply_patches.sh wownero
|
||
|
else
|
||
|
cd monero_c
|
||
|
fi
|
||
|
|
||
|
if [[ ! -f "monero/.patch-applied" ]];
|
||
|
then
|
||
|
./apply_patches.sh monero
|
||
|
fi
|
||
|
|
||
|
if [[ ! -f "wownero/.patch-applied" ]];
|
||
|
then
|
||
|
./apply_patches.sh wownero
|
||
|
fi
|
||
|
cd ..
|
||
|
|
||
|
echo "monero_c source prepared".
|