From 2b685de9a42bdbecca14ad8e74deed02cff46286 Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Tue, 12 Mar 2024 19:17:40 +0100 Subject: update monero to use upstream with patches instead of fork --- apply_patches.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 apply_patches.sh (limited to 'apply_patches.sh') diff --git a/apply_patches.sh b/apply_patches.sh new file mode 100755 index 0000000..78bad34 --- /dev/null +++ b/apply_patches.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +if [[ ! -d 'monero' ]] +then + echo "no 'monero' directory found. clone with --recursive or run:" + echo "$ git submodule init && git submodule update --force"; + exit 1 +fi + +if [[ -f "monero/.patch-applied" ]]; +then + echo "monero/.patch-applied file exist. manual investigation recommended." + exit 0 +fi + +cd monero +git apply ../patches/* --index +git submodule init +git submodule update --force +touch .patch-applied +git add . +git config user.email "you@example.com" +git config user.name "Your Name" +git commit -m 'patch applied' # fatal: path 'external/polyseed' exists on disk, but not in 'HEAD' +echo "you are good to go!" \ No newline at end of file -- cgit v1.2.3