Browse Source

combination of --START and --REVISION parameter is possible

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1841 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Markus Palme 20 years ago
parent
commit
c1712fc7c4
  1. 15
      src/Tools/SVNChangeLogToXml/Main.cs
  2. 4
      src/Tools/SVNChangeLogToXml/SVNChangelogToXml.csproj

15
src/Tools/SVNChangeLogToXml/Main.cs

@ -28,14 +28,17 @@ class MainClass
Console.WriteLine("Working directory must be SharpDevelop\\src or SharpDevelop\\bin!"); Console.WriteLine("Working directory must be SharpDevelop\\src or SharpDevelop\\bin!");
return 2; return 2;
} }
if (args.Length == 1 && args[0] == "--REVISION") {
CreateRevisionFile();
}
int start = 2; int start = 2;
if(args.Length == 2 && args[0] == "--START") for(int i = 0; i < args.Length; i++)
{ {
Int32.TryParse(args[1], out start); if(args[i] == "--REVISION")
{
CreateRevisionFile();
}
else if(args[i] == "--START") {
Int32.TryParse(args[i + 1], out start);
}
} }
ConvertChangeLog(start); ConvertChangeLog(start);
return 0; return 0;

4
src/Tools/SVNChangeLogToXml/SVNChangelogToXml.csproj

@ -18,14 +18,16 @@
<FileAlignment>4096</FileAlignment> <FileAlignment>4096</FileAlignment>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<NoWarn>1607</NoWarn> <NoWarn>1607</NoWarn>
<StartArguments>--REVISION --START 100</StartArguments>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>True</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow> <CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
<OutputPath>bin\Debug\</OutputPath> <OutputPath>bin\Debug\</OutputPath>
<Optimize>False</Optimize> <Optimize>False</Optimize>
<AllowUnsafeBlocks>False</AllowUnsafeBlocks> <AllowUnsafeBlocks>False</AllowUnsafeBlocks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors> <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<DebugType>Full</DebugType>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>False</DebugSymbols> <DebugSymbols>False</DebugSymbols>

Loading…
Cancel
Save