mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-27 07:14:48 +00:00
Changed more litecoin to kevacoin.
This commit is contained in:
parent
f756b1219c
commit
baa887ba65
@ -4,12 +4,12 @@ TOPDIR=${TOPDIR:-$(git rev-parse --show-toplevel)}
|
|||||||
SRCDIR=${SRCDIR:-$TOPDIR/src}
|
SRCDIR=${SRCDIR:-$TOPDIR/src}
|
||||||
MANDIR=${MANDIR:-$TOPDIR/doc/man}
|
MANDIR=${MANDIR:-$TOPDIR/doc/man}
|
||||||
|
|
||||||
LITECOIND=${LITECOIND:-$SRCDIR/kevacoind}
|
KEVACOIND=${KEVACOIND:-$SRCDIR/kevacoind}
|
||||||
LITECOINCLI=${LITECOINCLI:-$SRCDIR/kevacoin-cli}
|
LITECOINCLI=${LITECOINCLI:-$SRCDIR/kevacoin-cli}
|
||||||
LITECOINTX=${LITECOINTX:-$SRCDIR/kevacoin-tx}
|
LITECOINTX=${LITECOINTX:-$SRCDIR/kevacoin-tx}
|
||||||
LITECOINQT=${LITECOINQT:-$SRCDIR/qt/kevacoin-qt}
|
LITECOINQT=${LITECOINQT:-$SRCDIR/qt/kevacoin-qt}
|
||||||
|
|
||||||
[ ! -x $LITECOIND ] && echo "$LITECOIND not found or not executable." && exit 1
|
[ ! -x $KEVACOIND ] && echo "$KEVACOIND not found or not executable." && exit 1
|
||||||
|
|
||||||
# The autodetected version git tag can screw up manpage output a little bit
|
# The autodetected version git tag can screw up manpage output a little bit
|
||||||
LTCVER=($($LITECOINCLI --version | head -n1 | awk -F'[ -]' '{ print $6, $7 }'))
|
LTCVER=($($LITECOINCLI --version | head -n1 | awk -F'[ -]' '{ print $6, $7 }'))
|
||||||
@ -18,9 +18,9 @@ LTCVER=($($LITECOINCLI --version | head -n1 | awk -F'[ -]' '{ print $6, $7 }'))
|
|||||||
# This gets autodetected fine for bitcoind if --version-string is not set,
|
# This gets autodetected fine for bitcoind if --version-string is not set,
|
||||||
# but has different outcomes for bitcoin-qt and bitcoin-cli.
|
# but has different outcomes for bitcoin-qt and bitcoin-cli.
|
||||||
echo "[COPYRIGHT]" > footer.h2m
|
echo "[COPYRIGHT]" > footer.h2m
|
||||||
$LITECOIND --version | sed -n '1!p' >> footer.h2m
|
$KEVACOIND --version | sed -n '1!p' >> footer.h2m
|
||||||
|
|
||||||
for cmd in $LITECOIND $LITECOINCLI $LITECOINTX $LITECOINQT; do
|
for cmd in $KEVACOIND $LITECOINCLI $LITECOINTX $LITECOINQT; do
|
||||||
cmdname="${cmd##*/}"
|
cmdname="${cmd##*/}"
|
||||||
help2man -N --version-string=${LTCVER[0]} --include=footer.h2m -o ${MANDIR}/${cmdname}.1 ${cmd}
|
help2man -N --version-string=${LTCVER[0]} --include=footer.h2m -o ${MANDIR}/${cmdname}.1 ${cmd}
|
||||||
sed -i "s/\\\-${LTCVER[1]}//g" ${MANDIR}/${cmdname}.1
|
sed -i "s/\\\-${LTCVER[1]}//g" ${MANDIR}/${cmdname}.1
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.6.
|
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.6.
|
||||||
.TH LITECOIND "1" "September 2018" "kevacoind v0.16.3.0" "User Commands"
|
.TH KEVACOIND "1" "September 2018" "kevacoind v0.16.3.0" "User Commands"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
kevacoind \- manual page for kevacoind v0.16.3.0
|
kevacoind \- manual page for kevacoind v0.16.3.0
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
|
@ -60,7 +60,7 @@ from test_framework.blocktools import create_block, create_coinbase, create_tran
|
|||||||
class AcceptBlockTest(BitcoinTestFramework):
|
class AcceptBlockTest(BitcoinTestFramework):
|
||||||
def add_options(self, parser):
|
def add_options(self, parser):
|
||||||
parser.add_option("--testbinary", dest="testbinary",
|
parser.add_option("--testbinary", dest="testbinary",
|
||||||
default=os.getenv("LITECOIND", "kevacoind"),
|
default=os.getenv("KEVACOIND", "kevacoind"),
|
||||||
help="kevacoind binary to test")
|
help="kevacoind binary to test")
|
||||||
|
|
||||||
def set_test_params(self):
|
def set_test_params(self):
|
||||||
|
@ -389,7 +389,7 @@ class BitcoinTestFramework():
|
|||||||
# Create cache directories, run bitcoinds:
|
# Create cache directories, run bitcoinds:
|
||||||
for i in range(MAX_NODES):
|
for i in range(MAX_NODES):
|
||||||
datadir = initialize_datadir(self.options.cachedir, i)
|
datadir = initialize_datadir(self.options.cachedir, i)
|
||||||
args = [os.getenv("LITECOIND", "kevacoind"), "-server", "-keypool=1", "-datadir=" + datadir, "-discover=0"]
|
args = [os.getenv("KEVACOIND", "kevacoind"), "-server", "-keypool=1", "-datadir=" + datadir, "-discover=0"]
|
||||||
if i > 0:
|
if i > 0:
|
||||||
args.append("-connect=127.0.0.1:" + str(p2p_port(0)))
|
args.append("-connect=127.0.0.1:" + str(p2p_port(0)))
|
||||||
self.nodes.append(TestNode(i, self.options.cachedir, extra_args=[], rpchost=None, timewait=None, binary=None, stderr=None, mocktime=self.mocktime, coverage_dir=None))
|
self.nodes.append(TestNode(i, self.options.cachedir, extra_args=[], rpchost=None, timewait=None, binary=None, stderr=None, mocktime=self.mocktime, coverage_dir=None))
|
||||||
@ -459,10 +459,10 @@ class ComparisonTestFramework(BitcoinTestFramework):
|
|||||||
|
|
||||||
def add_options(self, parser):
|
def add_options(self, parser):
|
||||||
parser.add_option("--testbinary", dest="testbinary",
|
parser.add_option("--testbinary", dest="testbinary",
|
||||||
default=os.getenv("LITECOIND", "kevacoind"),
|
default=os.getenv("KEVACOIND", "kevacoind"),
|
||||||
help="kevacoind binary to test")
|
help="kevacoind binary to test")
|
||||||
parser.add_option("--refbinary", dest="refbinary",
|
parser.add_option("--refbinary", dest="refbinary",
|
||||||
default=os.getenv("LITECOIND", "kevacoind"),
|
default=os.getenv("KEVACOIND", "kevacoind"),
|
||||||
help="kevacoind binary to use for reference nodes (if any)")
|
help="kevacoind binary to use for reference nodes (if any)")
|
||||||
|
|
||||||
def setup_network(self):
|
def setup_network(self):
|
||||||
|
@ -53,7 +53,7 @@ class TestNode():
|
|||||||
# Wait for up to 600 seconds for the RPC server to respond
|
# Wait for up to 600 seconds for the RPC server to respond
|
||||||
self.rpc_timeout = 600
|
self.rpc_timeout = 600
|
||||||
if binary is None:
|
if binary is None:
|
||||||
self.binary = os.getenv("LITECOIND", "kevacoind")
|
self.binary = os.getenv("KEVACOIND", "kevacoind")
|
||||||
else:
|
else:
|
||||||
self.binary = binary
|
self.binary = binary
|
||||||
self.stderr = stderr
|
self.stderr = stderr
|
||||||
|
@ -297,8 +297,8 @@ def run_tests(test_list, src_dir, build_dir, exeext, tmpdir, jobs=1, enable_cove
|
|||||||
print("%sWARNING!%s There is a cache directory here: %s. If tests fail unexpectedly, try deleting the cache directory." % (BOLD[1], BOLD[0], cache_dir))
|
print("%sWARNING!%s There is a cache directory here: %s. If tests fail unexpectedly, try deleting the cache directory." % (BOLD[1], BOLD[0], cache_dir))
|
||||||
|
|
||||||
#Set env vars
|
#Set env vars
|
||||||
if "LITECOIND" not in os.environ:
|
if "KEVACOIND" not in os.environ:
|
||||||
os.environ["LITECOIND"] = build_dir + '/src/kevacoind' + exeext
|
os.environ["KEVACOIND"] = build_dir + '/src/kevacoind' + exeext
|
||||||
os.environ["LITECOINCLI"] = build_dir + '/src/kevacoin-cli' + exeext
|
os.environ["LITECOINCLI"] = build_dir + '/src/kevacoin-cli' + exeext
|
||||||
|
|
||||||
tests_dir = src_dir + '/test/functional/'
|
tests_dir = src_dir + '/test/functional/'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user