add git functionality to patch-bitcoin.sh.
This commit is contained in:
parent
5e89598f21
commit
11e08dbed9
@ -1,5 +1,19 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
dir=$(test -n "$1" && echo "$1" || echo "${HOME}/bitcoin")
|
dir=$(test -n "$1" && echo "$1" || echo "${HOME}/bitcoin")
|
||||||
|
|
||||||
cd "$dir" || exit 1
|
cd "$dir" || exit 1
|
||||||
patch -p1 < libbitcoind.patch
|
|
||||||
|
if test -e .git; then
|
||||||
|
git checkout -b libbitcoind || exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
patch -p1 < libbitcoind.patch || exit 1
|
||||||
|
|
||||||
|
if test -e .git; then
|
||||||
|
git add --all || exit 1
|
||||||
|
git commit -a -m 'allow compiling of libbitcoind.so.' || exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo 'Patch completed successfully.'
|
||||||
|
exit 0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user