2024-05-01 15:47:11 +00:00
|
|
|
#!/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
|
2024-05-24 05:36:19 +00:00
|
|
|
git checkout fa8d4c70c3133f1668d8a9c2c3b71eca58c371c9
|
2024-05-01 15:47:11 +00:00
|
|
|
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".
|