From 3436961bb5c01d659d09be134368f4f69460cef9 Mon Sep 17 00:00:00 2001
From: MW
Date: Sat, 26 May 2007 13:40:19 +0000
Subject: Start of rewrite 5279!
---
Prebuild/Prebuild.build | 67 ++
Prebuild/Prebuild.sln | 19 +
Prebuild/README | 230 +++++
Prebuild/TODO | 21 +
Prebuild/doc/prebuild-example1.xml | 300 +++++++
Prebuild/doc/prebuild-example2.xml | 72 ++
Prebuild/doc/prebuild-example3.xml | 113 +++
Prebuild/doc/prebuild-example4.xml | 715 ++++++++++++++++
Prebuild/doc/prebuild-example5.xml | 187 +++++
Prebuild/prebuild | 2 +
Prebuild/scripts/Clean.bat | 2 +
Prebuild/scripts/Help.bat | 2 +
Prebuild/scripts/MonoDevelop.sh | 2 +
Prebuild/scripts/Prebuild.nsi | 231 +++++
Prebuild/scripts/SharpDevelop.bat | 4 +
Prebuild/scripts/SharpDevelop2.bat | 4 +
Prebuild/scripts/VS2002.bat | 4 +
Prebuild/scripts/VS2003.bat | 4 +
Prebuild/scripts/VS2005.bat | 4 +
Prebuild/scripts/autotools.bat | 4 +
Prebuild/scripts/autotools.sh | 2 +
Prebuild/scripts/nant.bat | 4 +
Prebuild/scripts/nant.sh | 2 +
Prebuild/src/App.ico | Bin 0 -> 4286 bytes
Prebuild/src/Core/Attributes/DataNodeAttribute.cs | 81 ++
.../src/Core/Attributes/OptionNodeAttribute.cs | 80 ++
Prebuild/src/Core/Attributes/TargetAttribute.cs | 80 ++
Prebuild/src/Core/FatalException.cs | 94 +++
Prebuild/src/Core/Interfaces/IDataNode.cs | 56 ++
Prebuild/src/Core/Interfaces/ITarget.cs | 60 ++
Prebuild/src/Core/Kernel.cs | 758 +++++++++++++++++
Prebuild/src/Core/Nodes/ConfigurationNode.cs | 177 ++++
Prebuild/src/Core/Nodes/DataNode.cs | 82 ++
Prebuild/src/Core/Nodes/ExcludeNode.cs | 85 ++
Prebuild/src/Core/Nodes/FileNode.cs | 238 ++++++
Prebuild/src/Core/Nodes/FilesNode.cs | 222 +++++
Prebuild/src/Core/Nodes/MatchNode.cs | 299 +++++++
Prebuild/src/Core/Nodes/OptionsNode.cs | 655 +++++++++++++++
Prebuild/src/Core/Nodes/ProcessNode.cs | 119 +++
Prebuild/src/Core/Nodes/ProjectNode.cs | 494 +++++++++++
Prebuild/src/Core/Nodes/ReferenceNode.cs | 143 ++++
Prebuild/src/Core/Nodes/ReferencePathNode.cs | 98 +++
Prebuild/src/Core/Nodes/SolutionNode.cs | 284 +++++++
Prebuild/src/Core/Parse/IfContext.cs | 163 ++++
Prebuild/src/Core/Parse/Preprocessor.cs | 519 ++++++++++++
Prebuild/src/Core/Targets/AutotoolsTarget.cs | 926 +++++++++++++++++++++
Prebuild/src/Core/Targets/DebugTarget.cs | 102 +++
Prebuild/src/Core/Targets/MonoDevelopTarget.cs | 458 ++++++++++
Prebuild/src/Core/Targets/NAntTarget.cs | 621 ++++++++++++++
Prebuild/src/Core/Targets/SharpDevelop2Target.cs | 90 ++
Prebuild/src/Core/Targets/SharpDevelopTarget.cs | 437 ++++++++++
Prebuild/src/Core/Targets/VS2002Target.cs | 96 +++
Prebuild/src/Core/Targets/VS2003Target.cs | 633 ++++++++++++++
Prebuild/src/Core/Targets/VS2005Target.cs | 883 ++++++++++++++++++++
Prebuild/src/Core/UnknownLanguageException.cs | 63 ++
.../src/Core/Utilities/CommandLineCollection.cs | 162 ++++
Prebuild/src/Core/Utilities/CurrentDirectory.cs | 89 ++
Prebuild/src/Core/Utilities/Helper.cs | 661 +++++++++++++++
Prebuild/src/Core/Utilities/Log.cs | 279 +++++++
Prebuild/src/Core/WarningException.cs | 93 +++
Prebuild/src/Prebuild.cs | 165 ++++
Prebuild/src/Prebuild.csproj | 205 +++++
Prebuild/src/Prebuild.csproj.user | 12 +
Prebuild/src/Prebuild.exe.build | 80 ++
Prebuild/src/Prebuild.snk | Bin 0 -> 596 bytes
Prebuild/src/Properties/AssemblyInfo.cs | 101 +++
Prebuild/src/data/dnpb-1.0.xsd | 183 ++++
Prebuild/src/data/dnpb-1.1.xsd | 184 ++++
Prebuild/src/data/dnpb-1.2.xsd | 198 +++++
Prebuild/src/data/dnpb-1.3.xsd | 206 +++++
Prebuild/src/data/dnpb-1.4.xsd | 212 +++++
Prebuild/src/data/dnpb-1.5.xsd | 215 +++++
Prebuild/src/data/prebuild-1.6.xsd | 231 +++++
Prebuild/src/data/prebuild-1.7.xsd | 261 ++++++
74 files changed, 14628 insertions(+)
create mode 100644 Prebuild/Prebuild.build
create mode 100644 Prebuild/Prebuild.sln
create mode 100644 Prebuild/README
create mode 100644 Prebuild/TODO
create mode 100644 Prebuild/doc/prebuild-example1.xml
create mode 100644 Prebuild/doc/prebuild-example2.xml
create mode 100644 Prebuild/doc/prebuild-example3.xml
create mode 100644 Prebuild/doc/prebuild-example4.xml
create mode 100644 Prebuild/doc/prebuild-example5.xml
create mode 100644 Prebuild/prebuild
create mode 100644 Prebuild/scripts/Clean.bat
create mode 100644 Prebuild/scripts/Help.bat
create mode 100644 Prebuild/scripts/MonoDevelop.sh
create mode 100644 Prebuild/scripts/Prebuild.nsi
create mode 100644 Prebuild/scripts/SharpDevelop.bat
create mode 100644 Prebuild/scripts/SharpDevelop2.bat
create mode 100644 Prebuild/scripts/VS2002.bat
create mode 100644 Prebuild/scripts/VS2003.bat
create mode 100644 Prebuild/scripts/VS2005.bat
create mode 100644 Prebuild/scripts/autotools.bat
create mode 100644 Prebuild/scripts/autotools.sh
create mode 100644 Prebuild/scripts/nant.bat
create mode 100644 Prebuild/scripts/nant.sh
create mode 100644 Prebuild/src/App.ico
create mode 100644 Prebuild/src/Core/Attributes/DataNodeAttribute.cs
create mode 100644 Prebuild/src/Core/Attributes/OptionNodeAttribute.cs
create mode 100644 Prebuild/src/Core/Attributes/TargetAttribute.cs
create mode 100644 Prebuild/src/Core/FatalException.cs
create mode 100644 Prebuild/src/Core/Interfaces/IDataNode.cs
create mode 100644 Prebuild/src/Core/Interfaces/ITarget.cs
create mode 100644 Prebuild/src/Core/Kernel.cs
create mode 100644 Prebuild/src/Core/Nodes/ConfigurationNode.cs
create mode 100644 Prebuild/src/Core/Nodes/DataNode.cs
create mode 100644 Prebuild/src/Core/Nodes/ExcludeNode.cs
create mode 100644 Prebuild/src/Core/Nodes/FileNode.cs
create mode 100644 Prebuild/src/Core/Nodes/FilesNode.cs
create mode 100644 Prebuild/src/Core/Nodes/MatchNode.cs
create mode 100644 Prebuild/src/Core/Nodes/OptionsNode.cs
create mode 100644 Prebuild/src/Core/Nodes/ProcessNode.cs
create mode 100644 Prebuild/src/Core/Nodes/ProjectNode.cs
create mode 100644 Prebuild/src/Core/Nodes/ReferenceNode.cs
create mode 100644 Prebuild/src/Core/Nodes/ReferencePathNode.cs
create mode 100644 Prebuild/src/Core/Nodes/SolutionNode.cs
create mode 100644 Prebuild/src/Core/Parse/IfContext.cs
create mode 100644 Prebuild/src/Core/Parse/Preprocessor.cs
create mode 100644 Prebuild/src/Core/Targets/AutotoolsTarget.cs
create mode 100644 Prebuild/src/Core/Targets/DebugTarget.cs
create mode 100644 Prebuild/src/Core/Targets/MonoDevelopTarget.cs
create mode 100644 Prebuild/src/Core/Targets/NAntTarget.cs
create mode 100644 Prebuild/src/Core/Targets/SharpDevelop2Target.cs
create mode 100644 Prebuild/src/Core/Targets/SharpDevelopTarget.cs
create mode 100644 Prebuild/src/Core/Targets/VS2002Target.cs
create mode 100644 Prebuild/src/Core/Targets/VS2003Target.cs
create mode 100644 Prebuild/src/Core/Targets/VS2005Target.cs
create mode 100644 Prebuild/src/Core/UnknownLanguageException.cs
create mode 100644 Prebuild/src/Core/Utilities/CommandLineCollection.cs
create mode 100644 Prebuild/src/Core/Utilities/CurrentDirectory.cs
create mode 100644 Prebuild/src/Core/Utilities/Helper.cs
create mode 100644 Prebuild/src/Core/Utilities/Log.cs
create mode 100644 Prebuild/src/Core/WarningException.cs
create mode 100644 Prebuild/src/Prebuild.cs
create mode 100644 Prebuild/src/Prebuild.csproj
create mode 100644 Prebuild/src/Prebuild.csproj.user
create mode 100644 Prebuild/src/Prebuild.exe.build
create mode 100644 Prebuild/src/Prebuild.snk
create mode 100644 Prebuild/src/Properties/AssemblyInfo.cs
create mode 100644 Prebuild/src/data/dnpb-1.0.xsd
create mode 100644 Prebuild/src/data/dnpb-1.1.xsd
create mode 100644 Prebuild/src/data/dnpb-1.2.xsd
create mode 100644 Prebuild/src/data/dnpb-1.3.xsd
create mode 100644 Prebuild/src/data/dnpb-1.4.xsd
create mode 100644 Prebuild/src/data/dnpb-1.5.xsd
create mode 100644 Prebuild/src/data/prebuild-1.6.xsd
create mode 100644 Prebuild/src/data/prebuild-1.7.xsd
(limited to 'Prebuild')
diff --git a/Prebuild/Prebuild.build b/Prebuild/Prebuild.build
new file mode 100644
index 0000000..395fb31
--- /dev/null
+++ b/Prebuild/Prebuild.build
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Prebuild/Prebuild.sln b/Prebuild/Prebuild.sln
new file mode 100644
index 0000000..449896b
--- /dev/null
+++ b/Prebuild/Prebuild.sln
@@ -0,0 +1,19 @@
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual Studio 2005
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Prebuild", "src\Prebuild.csproj", "{92E80C1C-0000-0000-0000-000000000000}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {92E80C1C-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {92E80C1C-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {92E80C1C-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {92E80C1C-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/Prebuild/README b/Prebuild/README
new file mode 100644
index 0000000..eca6be1
--- /dev/null
+++ b/Prebuild/README
@@ -0,0 +1,230 @@
+Prebuild Instructions
+
+Prebuild is an XML-driven pre-build tool allowing developers to easily generate project or make files for major IDE's and .NET development tools including: Visual Studio 2005, Visual Studio 2003, Visual Studio 2002, SharpDevelop, SharpDevelop2, MonoDevelop, and NAnt.
+
+_________________________________________________________________________________
+Overview
+
+Prebuild can be either be run from the command line to generate the project and make files or you can execute the included batch (*.bat) and Unix Shell script (*.sh) files.
+The Prebuild file
+
+_________________________________________________________________________________
+The currently supported developement tools and their associated batch and shell script files.
+
+Visual Studio .NET 2005 (VS2005.bat)
+Visual Studio .NET 2003 (VS2003.bat)
+Visual Studio .NET 2002 (VS2002.bat)
+SharpDevelop (SharpDevelop.bat) - http://www.icsharpcode.net/OpenSource/SD/
+SharpDevelop2 (SharpDevelop.bat) - http://www.icsharpcode.net/OpenSource/SD/
+MonoDevelop (MonoDevelop.sh) - http://www.monodevelop.com/
+NAnt (nant.sh and nant.bat) - http://nant.sourceforge.net/
+Autotools (autotools.bat and autotools.sh) http://www.gnu.org. Only partial support
+
+Notes:
+A Unix Shell script is provided for MonoDevelop, as this is more appropriate than a windows batch file.
+Visual Studio .NET 2005 and the Visual Express IDE's can import solutions from older versions of Visual Studio .NET.
+Makefiles are not currently supported.
+
+_________________________________________________________________________________
+Command Line Syntax:
+
+Example:
+>Prebuild /target vs2003
+
+This will generate the project files for Visual Studio.NET 2003 and place the redirect the log to a file named PrebuildLog.txt in the parent directory
+
+
+The syntax structure is as below, where commandParameter is optional depending on the command and you can provide several option-value pairs.
+Note: The '>' signified the command line, do not actually enter this manually
+
+>Prebuild /