The open source repository for the action RPG game in development by Sig Productions titled 'Adventures in Lestoria'!
https://forums.lestoria.net
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
339 B
10 lines
339 B
2 years ago
|
(Get-Content -path $args[0] -Raw) |
|
||
|
ForEach-Object {
|
||
|
$defstr="#define VERSION_BUILD ";
|
||
|
$regex="$defstr(?<BuildVersion>\d*)";
|
||
|
if($_ -match $regex) {
|
||
|
$_ = $_ -replace $regex,"$($defstr)$(([int]$matches["BuildVersion"])+1)"
|
||
|
}
|
||
|
$_
|
||
|
} |
|
||
|
Out-File $args[0] -encoding ascii -nonewline
|