You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
23 lines
789 B
C#
23 lines
789 B
C#
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Threading;
|
|
using System.Reflection;
|
|
using AutomationTool;
|
|
using UnrealBuildTool;
|
|
|
|
[Help("Updates your local versions based on your P4 sync")]
|
|
[Help("CL", "Overrides the automatically disovered changelist number with the specified one")]
|
|
[Help("Licensee", "When updating version files, store the changelist number in licensee format")]
|
|
[RequireP4]
|
|
public class UpdateLocalVersion : BuildCommand
|
|
{
|
|
public override void ExecuteBuild()
|
|
{
|
|
var UE4Build = new UE4Build(this);
|
|
var ChangelistOverride = ParseParamInt("cl", -1);
|
|
UE4Build.UpdateVersionFiles(ChangelistNumberOverride: (ChangelistOverride < 0 ? (int?)null : ChangelistOverride));
|
|
}
|
|
}
|