forked from hmailserver/hmailserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0be7747
commit c71a6de
Showing
44,018 changed files
with
6,218,838 additions
and
1 deletion.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
|
||
# Compiled Dynamic libraries | ||
*.so | ||
*.dylib | ||
|
||
# Compiled Static libraries | ||
*.lai | ||
*.la | ||
*.a | ||
hmailserver/source/Server/hMailServer/Debug/ | ||
hmailserver/source/Server/hMailServer/hMailServer.h | ||
hmailserver/source/Server/hMailServer/Debug (x64)/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
hmailserver | ||
hMailServer | ||
=========== | ||
|
||
This is the public hMailServer source code repository. | ||
|
||
For information about hMailServer, please go to http://www.hmailserver.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<appSettings> | ||
<add key="SourcePath" value="C:\Dev\hMailServer\trunk" /> | ||
<add key="VS8Path" value="%PROGRAM_FILES%\Microsoft Visual Studio 9.0\Common7\IDE\devenv.com" /> | ||
<add key="VB6Path" value="%PROGRAM_FILES%\Microsoft Visual Studio\VB98\VB6.EXE" /> | ||
<add key="InnoSetupPath" value="%PROGRAM_FILES%\Inno Setup 5\ISCC.exe" /> | ||
<add key="BuildNumber" value="363" /> | ||
<add key="Version" value="5.4" /> | ||
<add key="SubversionPath" value="%PROGRAM_FILES%\CollabNet Subversion Server\svn.exe" /> | ||
</appSettings> | ||
<build> | ||
|
||
<action type="subversion" | ||
action="revert" | ||
directory="%PATH_SOURCE%" | ||
/> | ||
|
||
<action type="subversion" | ||
action="update" | ||
directory="%PATH_SOURCE%" | ||
/> | ||
|
||
<action type="cleardirectory" | ||
directory="%PATH_SOURCE%\Installation\Output" | ||
/> | ||
|
||
<action type="writefile" | ||
filename="%PATH_SOURCE%\source\server\Common\Application\Version.h" | ||
value="#pragma once\r\n\r\n#define HMAILSERVER_VERSION "%HMAILSERVER_VERSION%"\r\n#define HMAILSERVER_BUILD %BUILD_NUMBER%\r\n\r\n"/> | ||
|
||
<action type="writefile" | ||
filename="%PATH_SOURCE%\source\WebAdmin\include_versioncheck.php" | ||
value="<?php\r\ndefine('REQUIRED_VERSION', '%HMAILSERVER_VERSION%-B%BUILD_NUMBER%');\r\n?>"/> | ||
|
||
|
||
<action type="writeini" | ||
filename="%PATH_SOURCE%\Installation\hMailServer.iss" | ||
section="Setup" | ||
key="AppVerName" | ||
value="hMailServer %HMAILSERVER_VERSION%-B%BUILD_NUMBER%"/> | ||
|
||
<action type="writeini" | ||
filename="%PATH_SOURCE%\Installation\hMailServer.iss" | ||
section="Setup" | ||
key="OutputBaseFilename" | ||
value="hMailServer-%HMAILSERVER_VERSION%-B%BUILD_NUMBER%"/> | ||
|
||
<action type="runapplication" | ||
filename="%PATH_SOURCE%\tools\TranslationExtractor\bin\Release\TranslationExtractor.exe" | ||
parameters="%PATH_SOURCE%\source\Translations\"/> | ||
|
||
<action type="compilevs2008" | ||
filename="%PATH_SOURCE%\source\server\hMailServer\hMailServer.vcproj" | ||
configuration="Release"/> | ||
|
||
<action type="compilevs2005" | ||
filename="%PATH_SOURCE%\source\tools\Shared\Shared.csproj" | ||
configuration="Release"/> | ||
|
||
<action type="compilevs2005" | ||
filename="%PATH_SOURCE%\source\tools\Administrator\Administrator.csproj" | ||
configuration="Release"/> | ||
|
||
<action type="compilevs2005" | ||
filename="%PATH_SOURCE%\source\tools\DBSetup\DBSetup.csproj" | ||
configuration="Release"/> | ||
|
||
<action type="compilevs2005" | ||
filename="%PATH_SOURCE%\source\tools\DBSetupQuick\DBSetupQuick.csproj" | ||
configuration="Release"/> | ||
|
||
<action type="compilevs2005" | ||
filename="%PATH_SOURCE%\source\tools\DBUpdater\DBUpdater.csproj" | ||
configuration="Release"/> | ||
|
||
<action type="compilevs2005" | ||
filename="%PATH_SOURCE%\source\tools\DataDirectorySynchronizer\DataDirectorySynchronizer.csproj" | ||
configuration="Release"/> | ||
|
||
<action type="compileinnosetup" | ||
filename="%PATH_SOURCE%\installation\hMailServer.iss"/> | ||
|
||
<action type="compilevs2005" | ||
filename="%PATH_SOURCE%\test\RegressionTests\RegressionTests.csproj" | ||
configuration="Release"/> | ||
|
||
<action type="compilevs2005" | ||
filename="%PATH_SOURCE%\test\StressTest\StressTest.csproj" | ||
configuration="Release"/> | ||
|
||
<action type="compilevs2005" | ||
filename="%PATH_SOURCE%\test\VMwareIntegration\VMwareIntegration.sln" | ||
configuration="Release"/> | ||
|
||
<action type="runapplication" | ||
filename="%PATH_SOURCE%\test\VMwareIntegration\VMWareIntegration.Console\bin\Release\Console.exe" | ||
parameters=""/> | ||
|
||
|
||
</build> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<appSettings> | ||
<add key="SourcePath" value="C:\Build\HMS\trunk" /> | ||
<add key="VS8Path" value="%PROGRAM_FILESX86%\Microsoft Visual Studio 9.0\Common7\IDE\devenv.com" /> | ||
<add key="VB6Path" value="%PROGRAM_FILESX86%\Microsoft Visual Studio\VB98\VB6.EXE" /> | ||
<add key="InnoSetupPath" value="%PROGRAM_FILESX86%\Inno Setup 5\ISCC.exe" /> | ||
<add key="BuildNumber" value="1950" /> | ||
<add key="Version" value="5.4" /> | ||
<add key="SubversionPath" value="%PROGRAM_FILES%\CollabNet\Subversion Client\svn.exe" /> | ||
</appSettings> | ||
<build> | ||
|
||
<action type="subversion" | ||
action="revert" | ||
directory="%PATH_SOURCE%" | ||
/> | ||
|
||
<action type="subversion" | ||
action="update" | ||
directory="%PATH_SOURCE%" | ||
/> | ||
|
||
<action type="cleardirectory" | ||
directory="%PATH_SOURCE%\Installation\Output" | ||
/> | ||
|
||
<action type="writefile" | ||
filename="%PATH_SOURCE%\source\Server\Common\Application\Version.h" | ||
value="#pragma once\r\n\r\n#define HMAILSERVER_VERSION "%HMAILSERVER_VERSION%"\r\n#define HMAILSERVER_BUILD %BUILD_NUMBER%\r\n\r\n"/> | ||
|
||
<action type="writefile" | ||
filename="%PATH_SOURCE%\source\WebAdmin\include_versioncheck.php" | ||
value="<?php\r\ndefine('REQUIRED_VERSION', '%HMAILSERVER_VERSION%-B%BUILD_NUMBER%');\r\n?>"/> | ||
|
||
|
||
<action type="writeini" | ||
filename="%PATH_SOURCE%\Installation\hMailServer.iss" | ||
section="Setup" | ||
key="AppVerName" | ||
value="hMailServer %HMAILSERVER_VERSION%-B%BUILD_NUMBER%"/> | ||
|
||
<action type="writeini" | ||
filename="%PATH_SOURCE%\Installation\hMailServer.iss" | ||
section="Setup" | ||
key="OutputBaseFilename" | ||
value="hMailServer-%HMAILSERVER_VERSION%-B%BUILD_NUMBER%"/> | ||
|
||
<action type="runapplication" | ||
filename="%PATH_SOURCE%\tools\TranslationExtractor\bin\Release\TranslationExtractor.exe" | ||
parameters="%PATH_SOURCE%\source\Translations\"/> | ||
|
||
<action type="compilevs2008" | ||
filename="%PATH_SOURCE%\source\Server\hMailServer\hMailServer.vcproj" | ||
configuration="Release"/> | ||
|
||
<action type="compilevs2005" | ||
filename="%PATH_SOURCE%\source\tools\Shared\Shared.csproj" | ||
configuration="Release"/> | ||
|
||
<action type="compilevs2008" | ||
filename="%PATH_SOURCE%\source\tools\Administrator\Administrator.csproj" | ||
configuration="Release"/> | ||
|
||
<action type="compilevs2008" | ||
filename="%PATH_SOURCE%\source\tools\DBSetup\DBSetup.csproj" | ||
configuration="Release"/> | ||
|
||
<action type="compilevs2008" | ||
filename="%PATH_SOURCE%\source\tools\DBSetupQuick\DBSetupQuick.csproj" | ||
configuration="Release"/> | ||
|
||
<action type="compilevs2008" | ||
filename="%PATH_SOURCE%\source\tools\DBUpdater\DBUpdater.csproj" | ||
configuration="Release"/> | ||
|
||
<action type="compilevs2008" | ||
filename="%PATH_SOURCE%\source\tools\DataDirectorySynchronizer\DataDirectorySynchronizer.csproj" | ||
configuration="Release"/> | ||
|
||
<action type="compileinnosetup" | ||
filename="%PATH_SOURCE%\installation\hMailServer.iss"/> | ||
|
||
<action type="compilevs2008" | ||
filename="%PATH_SOURCE%\test\RegressionTests\RegressionTests.csproj" | ||
configuration="Release"/> | ||
|
||
<action type="compilevs2008" | ||
filename="%PATH_SOURCE%\test\StressTest\StressTest.csproj" | ||
configuration="Release"/> | ||
|
||
<action type="compilevs2008" | ||
filename="%PATH_SOURCE%\test\VMwareIntegration\VMwareIntegration.sln" | ||
configuration="Release"/> | ||
|
||
<action type="runapplication" | ||
filename="%PATH_SOURCE%\test\VMwareIntegration\VMWareIntegration.Console\bin\Release\Console.exe" | ||
parameters=""/> | ||
|
||
|
||
</build> | ||
</configuration> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
// Copyright (c) 2010 Martin Knafve / hMailServer.com. | ||
// http://www.hmailserver.com | ||
|
||
using System; | ||
using System.Xml; | ||
|
||
namespace Builder.Common | ||
{ | ||
public class BuildLoader | ||
{ | ||
public Builder Load(string s) | ||
{ | ||
var oBuilder = new Builder(); | ||
|
||
var doc = new XmlDocument(); | ||
doc.LoadXml(s); | ||
|
||
XmlNode buildNode = doc.ChildNodes[0]; | ||
|
||
for (int i = 0; i < buildNode.ChildNodes.Count; i++) | ||
{ | ||
XmlNode actionNode = buildNode.ChildNodes[i]; | ||
|
||
string sType = actionNode.Attributes["type"].Value; | ||
|
||
if (sType == "writefile") | ||
AddActionWritefile(oBuilder, actionNode); | ||
else if (sType == "writeini") | ||
AddActionWriteIni(oBuilder, actionNode); | ||
else if (sType == "runapplication") | ||
AddActionRunApplication(oBuilder, actionNode); | ||
else if (sType == "compilevs2005") | ||
AddActionCompileVS2005(oBuilder, actionNode); | ||
else if (sType == "compilevs2008") | ||
AddActionCompileVS2008(oBuilder, actionNode); | ||
else if (sType == "copyfile") | ||
AddActionCopyFile(oBuilder, actionNode); | ||
else if (sType == "compileinnosetup") | ||
AddActionCompileInnoSetup(oBuilder, actionNode); | ||
else if (sType == "git") | ||
AddActionGit(oBuilder, actionNode); | ||
else if (sType == "cleardirectory") | ||
AddActionClearDirectory(oBuilder, actionNode); | ||
else | ||
{ | ||
throw new Exception("Unknown build type " + sType); | ||
} | ||
} | ||
return oBuilder; | ||
} | ||
|
||
private void AddActionClearDirectory(Builder builder, XmlNode action) | ||
{ | ||
string directory = action.Attributes["directory"].Value; | ||
|
||
builder.Add(new BuildStepClearDirectory(builder, directory)); | ||
} | ||
|
||
private void AddActionWritefile(Builder builder, XmlNode action) | ||
{ | ||
string sFile = action.Attributes["filename"].Value; | ||
string sValue = action.Attributes["value"].Value; | ||
sValue = sValue.Replace("\\r\\n", Environment.NewLine); | ||
|
||
builder.Add(new BuildStepWriteFile(builder, sFile, sValue)); | ||
} | ||
|
||
private void AddActionWriteIni(Builder builder, XmlNode action) | ||
{ | ||
string sFile = action.Attributes["filename"].Value; | ||
string sSection = action.Attributes["section"].Value; | ||
string sKey = action.Attributes["key"].Value; | ||
string sValue = action.Attributes["value"].Value; | ||
|
||
builder.Add(new BuildStepWriteINI(builder, sFile, sSection, sKey, sValue)); | ||
} | ||
|
||
private void AddActionCompileVS2005(Builder builder, XmlNode action) | ||
{ | ||
string sFile = action.Attributes["filename"].Value; | ||
string sConfiguration = action.Attributes["configuration"].Value; | ||
|
||
builder.Add(new BuildStepCompileVSNet(builder, | ||
sFile, sConfiguration)); | ||
} | ||
|
||
private void AddActionCompileVS2008(Builder builder, XmlNode action) | ||
{ | ||
string sFile = action.Attributes["filename"].Value; | ||
string sConfiguration = action.Attributes["configuration"].Value; | ||
|
||
builder.Add(new BuildStepCompileVSNet(builder, | ||
sFile, sConfiguration)); | ||
} | ||
|
||
|
||
private void AddActionRunApplication(Builder builder, XmlNode action) | ||
{ | ||
string sFile = action.Attributes["filename"].Value; | ||
string sParameters = action.Attributes["parameters"].Value; | ||
builder.Add(new BuildStepRunApplication(builder, sFile, sParameters)); | ||
} | ||
|
||
|
||
private void AddActionCopyFile(Builder builder, XmlNode action) | ||
{ | ||
string sFrom = action.Attributes["from"].Value; | ||
string sTo = action.Attributes["to"].Value; | ||
|
||
bool bOverwrite = false; | ||
XmlAttribute oAttr = action.Attributes["overwrite"]; | ||
|
||
if (oAttr != null) | ||
bOverwrite = oAttr.Value == "true"; | ||
|
||
builder.Add(new BuildStepCopyFile(builder, sFrom, sTo, bOverwrite)); | ||
} | ||
|
||
private void AddActionCompileInnoSetup(Builder builder, XmlNode action) | ||
{ | ||
string sFilename = action.Attributes["filename"].Value; | ||
|
||
builder.Add(new BuildStepInnoSetup(builder, sFilename)); | ||
} | ||
|
||
private void AddActionGit(Builder builder, XmlNode action) | ||
{ | ||
string sAction = action.Attributes["action"].Value; | ||
string sDirectory = action.Attributes["directory"].Value; | ||
|
||
BuildStepGit.GITAction gitaction; | ||
|
||
if (sAction == "revertlocalchanges") | ||
gitaction = BuildStepGit.GITAction.RevertLocalChanges; | ||
else if (sAction == "pull") | ||
gitaction = BuildStepGit.GITAction.Pull; | ||
else | ||
throw new Exception("Incorrect Git configuration"); | ||
|
||
builder.Add(new BuildStepGit(builder, gitaction, sDirectory)); | ||
} | ||
|
||
public static string ProgramFilesx86() | ||
{ | ||
if (8 == IntPtr.Size | ||
|| (!String.IsNullOrEmpty(Environment.GetEnvironmentVariable("PROCESSOR_ARCHITEW6432")))) | ||
{ | ||
return Environment.GetEnvironmentVariable("ProgramFiles(x86)"); | ||
} | ||
|
||
return Environment.GetEnvironmentVariable("ProgramFiles"); | ||
} | ||
|
||
public static string ProgramFiles() | ||
{ | ||
return Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles); | ||
} | ||
} | ||
} |
Oops, something went wrong.