2018-03-07 13:44:24 +04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
#**************************************************************************#
|
|
|
|
#* *#
|
|
|
|
#* Copyright (c) 2014 - 2018. *#
|
|
|
|
#* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *#
|
|
|
|
#* *#
|
|
|
|
#* All rights reserved. No warranty, explicit or implicit, provided. *#
|
|
|
|
#* *#
|
|
|
|
#**************************************************************************#
|
|
|
|
|
|
|
|
docgen_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && echo "$(pwd -P)")"
|
|
|
|
rpc_doc="../_build/default/docs/doc_gen/rpcs/rpc_doc.exe"
|
|
|
|
usage="$docgen_dir/usage.rst"
|
|
|
|
|
2018-04-22 02:27:04 +04:00
|
|
|
$rpc_doc < $usage | sed -e 's|/chains/main/blocks/head/|.../<block_id>/|g'
|