Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
656d4b4
Renames RIPPLED_ and RIPPLE_ definitions to XRPL_
bthomee Sep 26, 2025
e7c72f0
Reduce scope
bthomee Sep 27, 2025
1570e2e
Merge branch 'develop' into bthomee/rename_definitions
bthomee Sep 27, 2025
e069114
Expand scope
bthomee Sep 27, 2025
c420ceb
Add readme
bthomee Sep 27, 2025
ec128fe
Merge branch 'develop' into bthomee/rename_definitions
bthomee Sep 27, 2025
b985a10
Merge branch 'develop' into bthomee/rename_definitions
bthomee Oct 8, 2025
5bf2343
Merge branch 'develop' into bthomee/rename_definitions
bthomee Oct 20, 2025
56ac3a7
Merge branch 'develop' into bthomee/rename_definitions
bthomee Oct 22, 2025
18c459f
Merge branch 'develop' into bthomee/rename_definitions
bthomee Oct 23, 2025
6139541
Add CI step to enforce renaming
bthomee Oct 23, 2025
cbc69ed
Specify directory
bthomee Oct 23, 2025
594b81b
Add paths to CI trigger
bthomee Oct 23, 2025
154d6fa
Merge branch 'develop' into bthomee/rename_definitions
bthomee Oct 23, 2025
fc33a8e
Use gnu-sed on MacOS
bthomee Oct 23, 2025
ac7cd17
refactor: Remove unnecessary copyright notices already covered by LIC…
bthomee Oct 23, 2025
b50bd88
Add modified files
bthomee Oct 23, 2025
4af408f
Fix typo in comment
bthomee Oct 23, 2025
115f019
refactor: Rename cmake files and definitions
bthomee Oct 30, 2025
808dcfb
Fix typo in README
bthomee Oct 30, 2025
296f826
Handle rerunning of the script
bthomee Oct 30, 2025
36ad664
Merge branch 'develop' into bthomee/rename_definitions
bthomee Oct 30, 2025
bf6308c
Merge branch 'bthomee/rename_definitions' into bthomee/rename_copyright
bthomee Oct 30, 2025
dc966e8
Merge branch 'bthomee/rename_copyright' into bthomee/rename_cmake
bthomee Oct 30, 2025
fe515e8
Restore renaming of the .cfg file
bthomee Oct 30, 2025
487bc23
Merge branch 'develop' into bthomee/rename_definitions
bthomee Nov 1, 2025
972ddde
Merge branch 'bthomee/rename_definitions' into bthomee/rename_copyright
bthomee Nov 1, 2025
b516a17
Merge branch 'bthomee/rename_copyright' into bthomee/rename_cmake
bthomee Nov 1, 2025
45dd129
Add cmake script to CI check pipeline
bthomee Nov 1, 2025
13c3d28
Fix bad merge
bthomee Nov 1, 2025
96732f8
Merge branch 'bthomee/rename_definitions' into bthomee/rename_copyright
bthomee Nov 1, 2025
1ba1ca7
Merge branch 'bthomee/rename_copyright' into bthomee/rename_cmake
bthomee Nov 1, 2025
fafe87f
Work around rename command not being available in CI images
bthomee Nov 1, 2025
81e715a
Remove useless command
bthomee Nov 2, 2025
f1a0d14
Fix script
bthomee Nov 2, 2025
80b1c71
refactor: Rename `rippled` binary to `xrpld` and add symlink
bthomee Nov 2, 2025
b8e6768
refactor: Rename `rippled.cfg` to `xrpld.cfg`
bthomee Nov 2, 2025
7b1d653
Use pushd and popd
bthomee Nov 2, 2025
cc8c465
Merge branch 'bthomee/rename_copyright' into bthomee/rename_cmake
bthomee Nov 2, 2025
cb9d7e6
Use pushd and popd
bthomee Nov 2, 2025
4d58bb1
Use braces and quotes appropriately
bthomee Nov 2, 2025
9816765
Merge branch 'bthomee/rename_definitions' into bthomee/rename_copyright
bthomee Nov 2, 2025
f77dc6c
Use braces and quotes appropriately
bthomee Nov 2, 2025
4cae198
Merge branch 'bthomee/rename_copyright' into bthomee/rename_cmake
bthomee Nov 2, 2025
037f54a
Use braces and quotes appropriately
bthomee Nov 2, 2025
a765784
Merge branch 'bthomee/rename_cmake' into bthomee/rename_binary
bthomee Nov 2, 2025
f1b283f
Use braces and quotes appropriately
bthomee Nov 2, 2025
8527bf5
Merge branch 'bthomee/rename_binary' into bthomee/rename_config
bthomee Nov 2, 2025
03f9873
Use braces and quotes appropriately
bthomee Nov 2, 2025
54a19a0
refactor: Rename `rippled` binary to `xrpld`
bthomee Nov 7, 2025
9184b72
Fix comments
bthomee Nov 7, 2025
2f15909
Reverse symlink
bthomee Nov 7, 2025
90cbab8
Merge branch 'bthomee/rename_binary' into bthomee/rename_config
bthomee Nov 7, 2025
802ac56
Merge branch 'develop' into bthomee/rename_binary
bthomee Nov 10, 2025
7141781
Restore changes to CI pipeline undone by other PR
bthomee Nov 10, 2025
09c61d6
refactor: Rename `ripple` namespace to `xrpl`
bthomee Nov 10, 2025
3faff9f
Merge branch 'develop' into bthomee/rename_binary
bthomee Nov 10, 2025
b0556e1
Merge branch 'bthomee/rename_binary' into bthomee/rename_namespace
bthomee Nov 10, 2025
91da840
Merge branch 'bthomee/rename_namespace' into bthomee/rename_config
bthomee Nov 10, 2025
690dced
Merge branch 'develop' into bthomee/rename_binary
bthomee Nov 14, 2025
7b00f1d
Merge branch 'bthomee/rename_binary' into bthomee/rename_namespace
bthomee Nov 14, 2025
68faad9
Merge branch 'bthomee/rename_namespace' into bthomee/rename_config
bthomee Nov 14, 2025
c40c939
Support reading both xrpld.cfg and rippled.cfg
bthomee Dec 2, 2025
0b2c50b
Merge branch 'develop' into bthomee/rename_binary
bthomee Dec 2, 2025
997a978
Merge branch 'bthomee/rename_binary' into bthomee/rename_namespace
bthomee Dec 2, 2025
3b45ed8
Merge branch 'bthomee/rename_namespace' into bthomee/rename_config
bthomee Dec 2, 2025
79a82c9
Update script to exclude support for legacy config file name
bthomee Dec 2, 2025
94c0949
Improve variable naming
bthomee Dec 2, 2025
8027d8b
Merge branch 'develop' into bthomee/rename_binary
bthomee Dec 10, 2025
7d97f5b
Rename rippled to xrpld in readmes
bthomee Dec 10, 2025
43f3df1
Modify script to restore git repo name
bthomee Dec 10, 2025
6576d96
Merge branch 'bthomee/rename_binary' into bthomee/rename_namespace
bthomee Dec 10, 2025
dd72907
Merge branch 'bthomee/rename_namespace' into bthomee/rename_config
bthomee Dec 10, 2025
9d1c435
Rename test suites
bthomee Dec 10, 2025
ab05777
Special case for test suite
bthomee Dec 10, 2025
d3a0e89
Merge branch 'bthomee/rename_namespace' into bthomee/rename_config
bthomee Dec 10, 2025
becc438
Rename inside .cfg
bthomee Dec 10, 2025
271a495
Merge branch 'develop' into bthomee/rename_config
bthomee Dec 11, 2025
d7947f0
Merge branch 'develop' into bthomee/rename_config
bthomee Dec 23, 2025
2661c4c
Add tests for HOME and XDG_CONFIG_HOME
bthomee Dec 23, 2025
c12322c
Improve test description comment, reduce variables
bthomee Dec 23, 2025
b989e64
Merge branch 'develop' into bthomee/rename_config
bthomee Jan 2, 2026
6a7d897
Merge branch 'develop' into bthomee/rename_config
bthomee Jan 2, 2026
33bd286
Merge branch 'develop' into bthomee/rename_config
bthomee Jan 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/scripts/rename/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ run from the repository root.
the `xrpld` binary.
5. `.github/scripts/rename/namespace.sh`: This script will rename the C++
namespaces from `ripple` to `xrpl`.
6. `.github/scripts/rename/config.sh`: This script will rename the config from
`rippled.cfg` to `xrpld.cfg`, and updating the code accordingly. The old
filename will still be accepted.

You can run all these scripts from the repository root as follows:

Expand All @@ -40,4 +43,5 @@ You can run all these scripts from the repository root as follows:
./.github/scripts/rename/cmake.sh .
./.github/scripts/rename/binary.sh .
./.github/scripts/rename/namespace.sh .
./.github/scripts/rename/config.sh .
```
72 changes: 72 additions & 0 deletions .github/scripts/rename/config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
#!/bin/bash

# Exit the script as soon as an error occurs.
set -e

# On MacOS, ensure that GNU sed is installed and available as `gsed`.
SED_COMMAND=sed
if [[ "${OSTYPE}" == 'darwin'* ]]; then
if ! command -v gsed &> /dev/null; then
echo "Error: gsed is not installed. Please install it using 'brew install gnu-sed'."
exit 1
fi
SED_COMMAND=gsed
fi

# This script renames the config from `rippled.cfg` to `xrpld.cfg`, and updates
# the code accordingly. The old filename will still be accepted.
# Usage: .github/scripts/rename/config.sh <repository directory>

if [ "$#" -ne 1 ]; then
echo "Usage: $0 <repository directory>"
exit 1
fi

DIRECTORY=$1
echo "Processing directory: ${DIRECTORY}"
if [ ! -d "${DIRECTORY}" ]; then
echo "Error: Directory '${DIRECTORY}' does not exist."
exit 1
fi
pushd ${DIRECTORY}

# Add the xrpld.cfg to the .gitignore.
if ! grep -q 'xrpld.cfg' .gitignore; then
${SED_COMMAND} -i '/rippled.cfg/a\
/xrpld.cfg' .gitignore
fi

# Rename the files.
if [ -e rippled.cfg ]; then
mv rippled.cfg xrpld.cfg
fi
if [ -e cfg/rippled-example.cfg ]; then
mv cfg/rippled-example.cfg cfg/xrpld-example.cfg
fi

# Rename inside the files.
DIRECTORIES=("cfg" "cmake" "include" "src")
for DIRECTORY in "${DIRECTORIES[@]}"; do
echo "Processing directory: ${DIRECTORY}"

find "${DIRECTORY}" -type f \( -name "*.h" -o -name "*.hpp" -o -name "*.ipp" -o -name "*.cpp" -o -name "*.cmake" -o -name "*.txt" -o -name "*.cfg" -o -name "*.md" \) | while read -r FILE; do
echo "Processing file: ${FILE}"
${SED_COMMAND} -i -E 's/rippled(-example)?[ .]cfg/xrpld\1.cfg/g' "${FILE}"
done
done
${SED_COMMAND} -i 's/rippled/xrpld/g' cfg/xrpld-example.cfg
${SED_COMMAND} -i 's/rippled/xrpld/g' src/test/core/Config_test.cpp
${SED_COMMAND} -i 's/ripplevalidators/xrplvalidators/g' src/test/core/Config_test.cpp
${SED_COMMAND} -i 's/rippleConfig/xrpldConfig/g' src/test/core/Config_test.cpp
${SED_COMMAND} -i 's@ripple/@xrpld/@g' src/test/core/Config_test.cpp
${SED_COMMAND} -i 's/Rippled/File/g' src/test/core/Config_test.cpp


# Restore the old config file name in the code that maintains support for now.
${SED_COMMAND} -i 's/configLegacyName = "xrpld.cfg"/configLegacyName = "rippled.cfg"/g' src/xrpld/core/detail/Config.cpp

# Restore an URL.
${SED_COMMAND} -i 's/connect-your-xrpld-to-the-xrp-test-net.html/connect-your-rippled-to-the-xrp-test-net.html/g' cfg/xrpld-example.cfg

popd
echo "Renaming complete."
2 changes: 2 additions & 0 deletions .github/workflows/reusable-check-rename.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
run: .github/scripts/rename/binary.sh .
- name: Check namespaces
run: .github/scripts/rename/namespace.sh .
- name: Check config name
run: .github/scripts/rename/config.sh .
- name: Check for differences
env:
MESSAGE: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ gmon.out

# Customized configs.
/rippled.cfg
/xrpld.cfg
/validators.txt

# Locally patched Conan recipes
Expand Down
2 changes: 1 addition & 1 deletion cfg/validators-example.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# Default validators.txt
#
# This file is located in the same folder as your rippled.cfg file
# This file is located in the same folder as your xrpld.cfg file
# and defines which validators your server trusts not to collude.
#
# This file is UTF-8 with DOS, UNIX, or Mac style line endings.
Expand Down
Loading
Loading