Skip to content
Permalink
Browse files

initial commit

  • Loading branch information...
Timotheus Pokorra
Timotheus Pokorra committed May 30, 2009
0 parents commit ba4799e052cc5018713f0a1a622d5d244d77d697
Showing 1,048 changed files with 860,648 additions and 0 deletions.
@@ -0,0 +1,9 @@
setup/petra0300/dbdoc
setup/petra0300/i18n
setup/petra0300/ndoc
setup/petra0300/Output
setup/petra0300/*.sql
setup/petra0300/*.db
db/basedb_progress
*.ico.gif
*.local
676 LICENSE

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<project name="OpenPetra" default="help">
<property name="MSBUILD" value="${sys.env.SystemRoot}/Microsoft.NET/Framework/v2.0.50727/MsBuild.exe"/>
<property name="SharpDevelop.dir" value="${sys.env.ProgramFiles}/SharpDevelop/3.0"/>
<property name="PostgreSQL.dir" value="${sys.env.ProgramFiles}/PostgreSQL/8.3"/>
<property name="Poedit.dir" value="${sys.env.ProgramFiles}/Poedit"/>
<property name="Innosetup.dir" value="${sys.env.ProgramFiles}/Inno Setup 5"/>
<property name="Uncrustify.dir" value="${sys.env.ProgramFiles}/Uncrustify"/>
<property name="MySQL.dir" value="C:/xampplite/mysql"/>
<property name="DBMS.Type" value="sqlite"/>
<property name="Translation.TargetLanguage" value="de"/>
</project>
@@ -0,0 +1,154 @@
<?xml version="1.0"?>
<!-- this contains the csharp functions that are used in OpenPetra.build -->
<project name="OpenPetra" default="help">
<script language="C#">
<code>
<![CDATA[
[Function("ReplaceInFile")]
public static bool ReplaceInFile(string filename, string oldValue, string newValue)
{
String line = "start";
StreamReader sr = new StreamReader(filename);
StreamWriter sw = new StreamWriter(filename + ".new");
bool doRegExpr = false;
if (oldValue.StartsWith("RegEx:"))
{
doRegExpr = true;
oldValue = oldValue.Substring("RegEx:".Length);
}
bool firstLine = true;
while (line != null)
{
line = sr.ReadLine();
if (line != null)
{
if (!firstLine)
{
// for uncrustify we have no linebreak on the last line
sw.WriteLine();
}
firstLine = false;
if (doRegExpr)
{
Regex reg=new Regex(oldValue);
line=reg.Replace(line,newValue);
}
else
{
line = line.Replace(oldValue, newValue);
}
sw.Write(line);
}
}
sr.Close();
sw.Close();
File.Delete(filename);
File.Move(filename + ".new", filename);
return true;
}
[Function("IsAutoGeneratedFile")]
public static bool IsAutoGeneratedFile(string filename)
{
StreamReader sr = new StreamReader(filename);
string line = sr.ReadLine();
sr.Close();
return line.ToLower().IndexOf("auto generated with nant") != -1;
}
[Function("CheckCode")]
public static bool CheckCode(string filename)
{
bool fileOK = true;
StreamReader sr = new StreamReader(filename);
string line = sr.ReadToEnd();
sr.Close();
// todo: more checks; eg. file header, licensing, copyright;
// check for xml comments written during compilation
if (filename.EndsWith(".csproj") && line.IndexOf("<DocumentationFile>") == -1)
{
fileOK = false;
Console.WriteLine("Project {0} does not write XML comments for NDoc", System.IO.Path.GetFileName(filename));
}
return fileOK;
}
[Function("ChangeProjectFileRelease")]
public static bool ChangeProjectFileRelease(string filename, bool makerelease)
{
if (makerelease)
{
if (!System.IO.File.Exists(filename + ".origDebug"))
{
System.IO.File.Copy(filename, filename + ".origDebug");
}
ReplaceInFile(filename, "_bin\\Debug", "_bin\\Release");
ReplaceInFile(filename, "Server_Client\\Debug", "Server_Client\\Release");
ReplaceInFile(filename, "Server_ServerAdmin\\Debug", "Server_ServerAdmin\\Release");
}
else
{
if (System.IO.File.Exists(filename + ".origDebug"))
{
System.IO.File.Delete(filename);
System.IO.File.Move(filename + ".origDebug", filename);
}
}
return true;
}
[Function("ChangeAssemblyVersion")]
public static bool ChangeAssemblyVersion(string filename, string releaseID, bool makerelease)
{
if (makerelease)
{
if (!System.IO.File.Exists(filename + ".origDebug"))
{
System.IO.File.Copy(filename, filename + ".origDebug");
}
ReplaceInFile(filename, "RegEx:AssemblyVersion(.*)]", "AssemblyVersion(\"" + releaseID + "\")]");
}
else
{
if (System.IO.File.Exists(filename + ".origDebug"))
{
System.IO.File.Delete(filename);
System.IO.File.Move(filename + ".origDebug", filename);
}
}
return true;
}
]]>
</code>
</script>
<script language="C#">
<references>
<include name="System.Web.dll" />
</references>
<imports>
<import namespace="System.Web.Security" />
<import namespace="System.Security.Cryptography" />
</imports>
<code>
<![CDATA[
[Function("GetPasswordSalt")]
public static string GetPasswordSalt() {
//Generate a cryptographic random number.
RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider();
byte[] buff = new byte[32];
rng.GetBytes(buff);
// Return a Base64 string representation of the random number.
return Convert.ToBase64String(buff);
}
[Function("GetPasswordHash")]
public static string GetPasswordHash(string APassword, string ASalt) {
return FormsAuthentication.HashPasswordForStoringInConfigFile(String.Concat(APassword, ASalt), "SHA1");
}
]]>
</code>
</script>
</project>
@@ -0,0 +1,4 @@
*.bak
_bin
app.config
*.yaml.xml
@@ -0,0 +1,50 @@
<project SchemaVersion="1.3">
<assemblies>
<assembly location=".\Common\IO\..\_bin\Debug\Ict.Common.IO.dll" documentation=".\Common\IO\..\_bin\Debug\Ict.Common.IO.xml" />
<assembly location=".\Common\Verification\..\_bin\Debug\Ict.Common.Verification.dll" documentation=".\Common\Verification\..\_bin\Debug\Ict.Common.Verification.xml" />
<assembly location=".\Common\Data\..\_bin\Debug\Ict.Common.Data.dll" documentation=".\Common\Data\..\_bin\Debug\Ict.Common.Data.xml" />
<assembly location=".\Common\DB\..\_bin\Debug\Ict.Common.DB.dll" documentation=".\Common\DB\..\_bin\Debug\Ict.Common.DB.xml" />
<assembly location=".\Common\Controls\..\_bin\Debug\Ict.Common.Controls.dll" documentation=".\Common\Controls\..\_bin\Debug\Ict.Common.Controls.xml" />
<assembly location=".\Common\_bin\Debug\Ict.Common.dll" documentation=".\Common\_bin\Debug\Ict.Common.xml" />
<assembly location=".\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.dll" documentation=".\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.xml" />
<assembly location=".\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.Interfaces.dll" documentation=".\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.Interfaces.xml" />
<assembly location=".\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.Interfaces.Plugins.dll" documentation=".\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.Interfaces.Plugins.xml" />
<assembly location=".\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MCommon.DataAccess.dll" documentation=".\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MCommon.DataAccess.xml" />
<assembly location=".\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MCommon.DataCascading.dll" documentation=".\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MCommon.DataCascading.xml" />
<assembly location=".\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MCommon.DataSets.dll" documentation=".\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MCommon.DataSets.xml" />
<assembly location=".\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MCommon.DataTables.dll" documentation=".\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MCommon.DataTables.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MCommon.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MCommon.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MHospitality.DataTables.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MHospitality.DataTables.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MPartner.DataAccess.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MPartner.DataAccess.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MPartner.DataSets.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MPartner.DataSets.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MPartner.DataTables.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MPartner.DataTables.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MPartner.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MPartner.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MPersonnel.DataAccess.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MPersonnel.DataAccess.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MPersonnel.DataSets.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MPersonnel.DataSets.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MPersonnel.DataTables.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MPersonnel.DataTables.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MPersonnel.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MPersonnel.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MReporting.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MReporting.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MSysMan.DataAccess.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MSysMan.DataAccess.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MSysMan.DataTables.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MSysMan.DataTables.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MSysMan.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MSysMan.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.UserInfo.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.UserInfo.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.Verification.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.Verification.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MConference.DataAccess.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MConference.DataAccess.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MConference.DataTables.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MConference.DataTables.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MConference.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MConference.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MFinance.DataAccess.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MFinance.DataAccess.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MFinance.DataTables.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MFinance.DataTables.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MFinance.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MFinance.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MHospitality.DataAccess.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MHospitality.DataAccess.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MHospitality.DataSets.dll" documentation="U:\OpenPetra\csharp\ICT\Petra\Shared\_bin\Server_Client\Debug\Ict.Petra.Shared.MHospitality.DataSets.xml" />
<assembly location="U:\OpenPetra\csharp\ICT\Common\_bin\Debug\Ict.Common.GTK.dll" documentation="U:\OpenPetra\csharp\ICT\Common\_bin\Debug\Ict.Common.GTK.xml" />
</assemblies>
<documenters>
<documenter name="MSDN">
<property name="OutputDirectory" value="..\..\setup\petra0300\ndoc\" />
<property name="HtmlHelpName" value="OpenPetraOrg" />
<property name="Title" value="OpenPetra.org" />
<property name="SdkDocVersionString" value="VS.80" />
</documenter>
</documenters>
</project>

0 comments on commit ba4799e

Please sign in to comment.
You can’t perform that action at this time.