379cb741ed
This commit systematically rebrands various references from Parity Technologies' Polkadot/Substrate ecosystem to PezkuwiChain within the kurdistan-sdk. Key changes include: - Updated external repository URLs (zombienet-sdk, parity-db, parity-scale-codec, wasm-instrument) to point to pezkuwichain forks. - Modified internal documentation and code comments to reflect PezkuwiChain naming and structure. - Replaced direct references to with or specific paths within the for XCM, Pezkuwi, and other modules. - Cleaned up deprecated issue and PR references in various and files, particularly in and modules. - Adjusted image and logo URLs in documentation to point to PezkuwiChain assets. - Removed or rephrased comments related to external Polkadot/Substrate PRs and issues. This is a significant step towards fully customizing the SDK for the PezkuwiChain ecosystem.
34 lines
1.0 KiB
Bash
Executable File
34 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Find all Cargo.toml files excluding the root,umbrella/Cargo.toml,
|
|
# bizinikiwi/frame/contracts/fixtures/build/Cargo.toml,
|
|
# bizinikiwi/frame/contracts/fixtures/contracts/common/Cargo.toml
|
|
find . -name "Cargo.toml" \
|
|
! -path "./Cargo.toml" \
|
|
! -path "./umbrella/Cargo.toml" \
|
|
! -path "./bizinikiwi/frame/contracts/fixtures/build/Cargo.toml" \
|
|
! -path "./bizinikiwi/frame/contracts/fixtures/contracts/common/Cargo.toml"| while read -r file; do
|
|
|
|
echo "Processing $file..."
|
|
|
|
# Find and replace path dependencies with "workspace = true"
|
|
awk '
|
|
BEGIN { in_section = 0 }
|
|
/^\[dependencies\]/ { in_section = 1; print; next }
|
|
/^\[dev-dependencies\]/ { in_section = 2; print; next }
|
|
/^\[.*\]/ { in_section = 0; print; next }
|
|
|
|
{
|
|
if (in_section == 1 || in_section == 2) {
|
|
if ($0 ~ /path *= *".*"/) {
|
|
gsub(/path *= *".*"/, "workspace = true")
|
|
}
|
|
}
|
|
print
|
|
}
|
|
' "$file" > "${file}.tmp" && mv "${file}.tmp" "$file"
|
|
|
|
done
|
|
|
|
echo "All applicable Cargo.toml files updated."
|