-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate_company_branding.ps1
More file actions
44 lines (40 loc) · 1.91 KB
/
update_company_branding.ps1
File metadata and controls
44 lines (40 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# PowerShell script to update all company branding references
Write-Host "Updating all company branding references to REChain Network Solutions LLC..."
# Update Cargo.toml files
$tomlFiles = Get-ChildItem -Path "." -Name "*.toml" -Recurse
foreach ($file in $tomlFiles) {
Write-Host "Updating company references in $file..."
$content = Get-Content $file.FullName -Raw -ErrorAction SilentlyContinue
if ($content) {
# Update author references
$content = $content -replace "Parity Technologies <admin@parity.io>", "REChain Network Solutions LLC <info@rechain.network>"
$content = $content -replace "paritytech", "rechain-network"
$content = $content -replace "parity.io", "rechain.network"
$content = $content -replace "security@parity.io", "info@rechain.network"
Set-Content -Path $file.FullName -Value $content
}
}
# Update README files
$readmeFiles = Get-ChildItem -Path "." -Name "README.md" -Recurse
foreach ($file in $readmeFiles) {
Write-Host "Updating company references in $file..."
$content = Get-Content $file.FullName -Raw -ErrorAction SilentlyContinue
if ($content) {
$content = $content -replace "paritytech", "rechain-network"
$content = $content -replace "parity.io", "rechain.network"
$content = $content -replace "Polkadot", "Rechain"
Set-Content -Path $file.FullName -Value $content
}
}
# Update other documentation files
$docFiles = Get-ChildItem -Path "." -Name "*.md" -Recurse
foreach ($file in $docFiles) {
Write-Host "Updating company references in $file..."
$content = Get-Content $file.FullName -Raw -ErrorAction SilentlyContinue
if ($content) {
$content = $content -replace "paritytech", "rechain-network"
$content = $content -replace "parity.io", "rechain.network"
Set-Content -Path $file.FullName -Value $content
}
}
Write-Host "Company branding update completed successfully!"