#!/bin/bash set -x -e cd "$(dirname "$0")" if [[ ! -d "monero_c" ]]; then git clone https://github.com/mrcyjanek/monero_c --branch master cd monero_c git checkout 1d8e0fb30b53c28756f23676d5a3e1a99a9b3051 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".