aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Prebuild/src/Prebuild.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-07-11 08:02:47 +0000
committerAdam Frisby2007-07-11 08:02:47 +0000
commit5c7ffdde0b9642a42e8f5987e06eb01220ff7776 (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /Prebuild/src/Prebuild.cs
parentWho would have known that the only way of specifying utf-8 without preamble, ... (diff)
downloadopensim-SC_OLD-5c7ffdde0b9642a42e8f5987e06eb01220ff7776.zip
opensim-SC_OLD-5c7ffdde0b9642a42e8f5987e06eb01220ff7776.tar.gz
opensim-SC_OLD-5c7ffdde0b9642a42e8f5987e06eb01220ff7776.tar.bz2
opensim-SC_OLD-5c7ffdde0b9642a42e8f5987e06eb01220ff7776.tar.xz
* Wiping trunk in prep for Sugilite
Diffstat (limited to '')
-rw-r--r--Prebuild/src/Prebuild.cs165
-rw-r--r--Prebuild/src/Prebuild.csproj205
2 files changed, 0 insertions, 370 deletions
diff --git a/Prebuild/src/Prebuild.cs b/Prebuild/src/Prebuild.cs
deleted file mode 100644
index 597db68..0000000
--- a/Prebuild/src/Prebuild.cs
+++ /dev/null
@@ -1,165 +0,0 @@
1#region BSD License
2/*
3Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com)
4
5Redistribution and use in source and binary forms, with or without modification, are permitted
6provided that the following conditions are met:
7
8* Redistributions of source code must retain the above copyright notice, this list of conditions
9 and the following disclaimer.
10* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
11 and the following disclaimer in the documentation and/or other materials provided with the
12 distribution.
13* The name of the author may not be used to endorse or promote products derived from this software
14 without specific prior written permission.
15
16THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
17BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
22IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23*/
24#endregion
25
26#region CVS Information
27/*
28 * $Source$
29 * $Author: jendave $
30 * $Date: 2006-09-26 23:43:35 +0200 (ti, 26 sep 2006) $
31 * $Revision: 168 $
32 */
33#endregion
34
35using System;
36using System.Collections.Specialized;
37using System.IO;
38using System.Reflection;
39using System.Runtime.InteropServices;
40using System.EnterpriseServices.Internal;
41
42using Prebuild.Core;
43using Prebuild.Core.Utilities;
44
45namespace Prebuild
46{
47 /// <summary>
48 ///
49 /// </summary>
50 class Prebuild
51 {
52 #region Main
53
54 [STAThread]
55 static void Main(string[] args)
56 {
57 Kernel kernel = null;
58 try
59 {
60 kernel = Kernel.Instance;
61 kernel.Initialize(LogTargets.File | LogTargets.Console, args);
62 bool exit = false;
63
64 if(kernel.CommandLine.WasPassed("usage"))
65 {
66 exit = true;
67 OutputUsage();
68 }
69 if(kernel.CommandLine.WasPassed("showtargets"))
70 {
71 exit = true;
72 OutputTargets(kernel);
73 }
74 if(kernel.CommandLine.WasPassed("install"))
75 {
76 exit = true;
77 InstallAssembly(kernel);
78 }
79 if(kernel.CommandLine.WasPassed("remove"))
80 {
81 exit = true;
82 RemoveAssembly(kernel);
83 }
84
85 if(!exit)
86 {
87 kernel.Process();
88 }
89 }
90 catch(Exception ex)
91 {
92 Console.WriteLine("Unhandled error: {0}", ex.Message);
93 //#if DEBUG
94 Console.WriteLine("{0}", ex.StackTrace);
95 //#endif
96 }
97 finally
98 {
99 if(kernel.PauseAfterFinish)
100 {
101 Console.WriteLine("\nPress enter to continue...");
102 Console.ReadLine();
103 }
104 }
105 }
106
107 #endregion
108
109 #region Private Methods
110
111 private static void InstallAssembly(Kernel kernel)
112 {
113 Publish publish = new Publish();
114 string file = kernel.CommandLine["install"];
115 //Console.WriteLine(".."+file+"..");
116 publish.GacInstall(file);
117 }
118
119 private static void RemoveAssembly(Kernel kernel)
120 {
121 Publish publish = new Publish();
122 string file = kernel.CommandLine["remove"];
123 publish.GacRemove(file);
124 }
125
126 private static void OutputUsage()
127 {
128 Console.WriteLine("Usage: prebuild /target <target> [options]");
129 Console.WriteLine("Available command-line switches:");
130 Console.WriteLine();
131 Console.WriteLine("/target Target for Prebuild");
132 Console.WriteLine("/clean Clean the build files for the given target");
133 Console.WriteLine("/file XML file to process");
134 Console.WriteLine("/log Log file to write to");
135 Console.WriteLine("/ppo Pre-process the file, but perform no other processing");
136 Console.WriteLine("/pause Pauses the application after execution to view the output");
137 Console.WriteLine("/yes Default to yes to any questions asked");
138 Console.WriteLine("/install Install assembly into the GAC");
139 Console.WriteLine("/remove Remove assembly from the GAC");
140 Console.WriteLine();
141 Console.WriteLine("See 'prebuild /showtargets for a list of available targets");
142 Console.WriteLine("See readme.txt or check out http://dnpb.sourceforge.net for more information");
143 Console.WriteLine();
144 }
145
146 private static void OutputTargets(Kernel kern)
147 {
148 Console.WriteLine("Targets available in Prebuild:");
149 Console.WriteLine("");
150 if(kern.Targets.Keys.Count > 0)
151 {
152 string[] targs = new string[kern.Targets.Keys.Count];
153 kern.Targets.Keys.CopyTo(targs, 0);
154 Array.Sort(targs);
155 foreach(string target in targs)
156 {
157 Console.WriteLine(target);
158 }
159 }
160 Console.WriteLine("");
161 }
162
163 #endregion
164 }
165}
diff --git a/Prebuild/src/Prebuild.csproj b/Prebuild/src/Prebuild.csproj
deleted file mode 100644
index c8b859c..0000000
--- a/Prebuild/src/Prebuild.csproj
+++ /dev/null
@@ -1,205 +0,0 @@
1<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2 <PropertyGroup>
3 <ProjectType>Local</ProjectType>
4 <ProductVersion>8.0.50727</ProductVersion>
5 <SchemaVersion>2.0</SchemaVersion>
6 <ProjectGuid>{92E80C1C-0000-0000-0000-000000000000}</ProjectGuid>
7 <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
8 <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
9 <ApplicationIcon>App.ico</ApplicationIcon>
10 <AssemblyKeyContainerName>
11 </AssemblyKeyContainerName>
12 <AssemblyName>Prebuild</AssemblyName>
13 <AssemblyOriginatorKeyFile>Prebuild.snk</AssemblyOriginatorKeyFile>
14 <SignAssembly>true</SignAssembly>
15 <DefaultClientScript>JScript</DefaultClientScript>
16 <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
17 <DefaultTargetSchema>IE50</DefaultTargetSchema>
18 <DelaySign>false</DelaySign>
19 <OutputType>Exe</OutputType>
20 <AppDesignerFolder></AppDesignerFolder>
21 <RootNamespace>Prebuild</RootNamespace>
22 <StartupObject>Prebuild.Prebuild</StartupObject>
23 <FileUpgradeFlags>
24 </FileUpgradeFlags>
25 </PropertyGroup>
26 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
27 <AllowUnsafeBlocks>False</AllowUnsafeBlocks>
28 <BaseAddress>285212672</BaseAddress>
29 <CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
30 <ConfigurationOverrideFile>
31 </ConfigurationOverrideFile>
32 <DefineConstants>DEBUG;TRACE</DefineConstants>
33 <DocumentationFile></DocumentationFile>
34 <DebugSymbols>True</DebugSymbols>
35 <FileAlignment>4096</FileAlignment>
36 <Optimize>False</Optimize>
37 <OutputPath>..\..\bin\</OutputPath>
38 <RegisterForComInterop>False</RegisterForComInterop>
39 <RemoveIntegerChecks>False</RemoveIntegerChecks>
40 <TreatWarningsAsErrors>False</TreatWarningsAsErrors>
41 <WarningLevel>4</WarningLevel>
42 <NoWarn>1595</NoWarn>
43 </PropertyGroup>
44 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
45 <AllowUnsafeBlocks>False</AllowUnsafeBlocks>
46 <BaseAddress>285212672</BaseAddress>
47 <CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
48 <ConfigurationOverrideFile>
49 </ConfigurationOverrideFile>
50 <DefineConstants>TRACE</DefineConstants>
51 <DocumentationFile></DocumentationFile>
52 <DebugSymbols>False</DebugSymbols>
53 <FileAlignment>4096</FileAlignment>
54 <Optimize>True</Optimize>
55 <OutputPath>..\..\bin\</OutputPath>
56 <RegisterForComInterop>False</RegisterForComInterop>
57 <RemoveIntegerChecks>False</RemoveIntegerChecks>
58 <TreatWarningsAsErrors>False</TreatWarningsAsErrors>
59 <WarningLevel>4</WarningLevel>
60 <NoWarn>1595</NoWarn>
61 </PropertyGroup>
62 <ItemGroup>
63 <Reference Include="System" >
64 <HintPath>System.dll</HintPath>
65 <Private>False</Private>
66 </Reference>
67 <Reference Include="System.EnterpriseServices" >
68 <HintPath>System.EnterpriseServices.dll</HintPath>
69 <Private>False</Private>
70 </Reference>
71 <Reference Include="System.Xml" >
72 <HintPath>System.Xml.dll</HintPath>
73 <Private>False</Private>
74 </Reference>
75 </ItemGroup>
76 <ItemGroup>
77 </ItemGroup>
78 <ItemGroup>
79 <EmbeddedResource Include="App.ico">
80 </EmbeddedResource>
81 <EmbeddedResource Include="data\prebuild-1.7.xsd">
82 </EmbeddedResource>
83 <Compile Include="Prebuild.cs">
84 <SubType>Code</SubType>
85 </Compile>
86 <Compile Include="Core\FatalException.cs">
87 <SubType>Code</SubType>
88 </Compile>
89 <Compile Include="Core\Kernel.cs">
90 <SubType>Code</SubType>
91 </Compile>
92 <Compile Include="Core\UnknownLanguageException.cs">
93 <SubType>Code</SubType>
94 </Compile>
95 <Compile Include="Core\WarningException.cs">
96 <SubType>Code</SubType>
97 </Compile>
98 <Compile Include="Core\Attributes\DataNodeAttribute.cs">
99 <SubType>Code</SubType>
100 </Compile>
101 <Compile Include="Core\Attributes\OptionNodeAttribute.cs">
102 <SubType>Code</SubType>
103 </Compile>
104 <Compile Include="Core\Attributes\TargetAttribute.cs">
105 <SubType>Code</SubType>
106 </Compile>
107 <Compile Include="Core\Interfaces\IDataNode.cs">
108 <SubType>Code</SubType>
109 </Compile>
110 <Compile Include="Core\Interfaces\ITarget.cs">
111 <SubType>Code</SubType>
112 </Compile>
113 <Compile Include="Core\Nodes\ConfigurationNode.cs">
114 <SubType>Code</SubType>
115 </Compile>
116 <Compile Include="Core\Nodes\DataNode.cs">
117 <SubType>Code</SubType>
118 </Compile>
119 <Compile Include="Core\Nodes\ExcludeNode.cs">
120 <SubType>Code</SubType>
121 </Compile>
122 <Compile Include="Core\Nodes\FileNode.cs">
123 <SubType>Code</SubType>
124 </Compile>
125 <Compile Include="Core\Nodes\FilesNode.cs">
126 <SubType>Code</SubType>
127 </Compile>
128 <Compile Include="Core\Nodes\MatchNode.cs">
129 <SubType>Code</SubType>
130 </Compile>
131 <Compile Include="Core\Nodes\OptionsNode.cs">
132 <SubType>Code</SubType>
133 </Compile>
134 <Compile Include="Core\Nodes\ProcessNode.cs">
135 <SubType>Code</SubType>
136 </Compile>
137 <Compile Include="Core\Nodes\ProjectNode.cs">
138 <SubType>Code</SubType>
139 </Compile>
140 <Compile Include="Core\Nodes\ReferenceNode.cs">
141 <SubType>Code</SubType>
142 </Compile>
143 <Compile Include="Core\Nodes\ReferencePathNode.cs">
144 <SubType>Code</SubType>
145 </Compile>
146 <Compile Include="Core\Nodes\SolutionNode.cs">
147 <SubType>Code</SubType>
148 </Compile>
149 <Compile Include="Core\Parse\IfContext.cs">
150 <SubType>Code</SubType>
151 </Compile>
152 <Compile Include="Core\Parse\Preprocessor.cs">
153 <SubType>Code</SubType>
154 </Compile>
155 <Compile Include="Core\Targets\AutotoolsTarget.cs">
156 <SubType>Code</SubType>
157 </Compile>
158 <Compile Include="Core\Targets\DebugTarget.cs">
159 <SubType>Code</SubType>
160 </Compile>
161 <Compile Include="Core\Targets\MonoDevelopTarget.cs">
162 <SubType>Code</SubType>
163 </Compile>
164 <Compile Include="Core\Targets\NAntTarget.cs">
165 <SubType>Code</SubType>
166 </Compile>
167 <Compile Include="Core\Targets\SharpDevelop2Target.cs">
168 <SubType>Code</SubType>
169 </Compile>
170 <Compile Include="Core\Targets\SharpDevelopTarget.cs">
171 <SubType>Code</SubType>
172 </Compile>
173 <Compile Include="Core\Targets\VS2002Target.cs">
174 <SubType>Code</SubType>
175 </Compile>
176 <Compile Include="Core\Targets\VS2003Target.cs">
177 <SubType>Code</SubType>
178 </Compile>
179 <Compile Include="Core\Targets\VS2005Target.cs">
180 <SubType>Code</SubType>
181 </Compile>
182 <Compile Include="Core\Utilities\CommandLineCollection.cs">
183 <SubType>Code</SubType>
184 </Compile>
185 <Compile Include="Core\Utilities\CurrentDirectory.cs">
186 <SubType>Code</SubType>
187 </Compile>
188 <Compile Include="Core\Utilities\Helper.cs">
189 <SubType>Code</SubType>
190 </Compile>
191 <Compile Include="Core\Utilities\Log.cs">
192 <SubType>Code</SubType>
193 </Compile>
194 <Compile Include="Properties\AssemblyInfo.cs">
195 <SubType>Code</SubType>
196 </Compile>
197 </ItemGroup>
198 <Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />
199 <PropertyGroup>
200 <PreBuildEvent>
201 </PreBuildEvent>
202 <PostBuildEvent>
203 </PostBuildEvent>
204 </PropertyGroup>
205</Project>