src/node/
code in node::
namespace in libbitcoin_node.a
library
Goal along with namespacing PR #23497 is to have src/node/ code in
node:: namespace in libbitcoin_node.a library
-BEGIN VERIFY SCRIPT-
bash -c ' # Bash shell needed for brace expansion {a,b}
git mv build_msvc/libbitcoin_{server,node}
git mv build_msvc/libbitcoin_node/libbitcoin_{server,node}.vcxproj.in
ren() { git grep -l "$1" src build_msvc | xargs sed -i "s/$1/$2/g"; }
ren LIBBITCOIN_{SERVER,NODE}
ren libbitcoin_{server,node}
'
-END VERIFY SCRIPT-
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
{}
in sed?
I cancelled this because the script failed. Maybe the bash doesn’t resolve the
{}
in sed?
Yes it looks like there is a problem with {server,node}
expansion throughout the script. I think problem might be that /bin/sh
doesn’t support brace expansion so I pushed a version that calls bash. Lint looks like it’s passing now. Will see if the actual build change is good and all the builds are working. I requested a GUIX build for this too, but feel free to cancel if this is overkill.
Updated 8ef044b7373d3c57841a0bc6427236d6f9b4192c -> 172096e9dd5b0e04b88ffd6dc1f6d43190070e14 (pr/libnode.1
-> pr/libnode.2
, compare)