forked from microsoft/mwt-ds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
forkify.ps1
18 lines (13 loc) · 1.02 KB
/
forkify.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
param ([string]$fork = "Microsoft")
$f = (gc provisioning\azuredeploy.json)
$f = ($f -replace 'https://raw.githubusercontent.com/.*/mwt-ds/master/provisioning/', "https://raw.githubusercontent.com/$fork/mwt-ds/master/provisioning/")
$f | Out-File -Encoding "UTF8" provisioning\azuredeploy.json
$f = (gc provisioning\test\ProvisioningUtil.cs)
$f = ($f -replace "https://raw.githubusercontent.com/.*/mwt-ds/master/provisioning", "https://raw.githubusercontent.com/$fork/mwt-ds/master/provisioning")
$f | Out-File -Encoding "UTF8" provisioning\test\ProvisioningBaseTest.cs
$f = (gc provisioning\templates\WebManageTemplate.json)
$f = ($f -replace "https://github.com/.*/mwt-ds.git", "https://github.com/$fork/mwt-ds.git")
$f | Out-File -Encoding "UTF8" provisioning\templates\WebManageTemplate.json
$f = (gc provisioning\templates\WebManageUpgradeTemplate.json)
$f = ($f -replace "https://github.com/.*/mwt-ds.git", "https://github.com/$fork/mwt-ds.git")
$f | Out-File -Encoding "UTF8" provisioning\templates\WebManageUpgradeTemplate.json