diff options
author | Justin Clark-Casey (justincc) | 2010-09-11 01:13:08 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-09-11 01:13:08 +0100 |
commit | 7e65590a55ba575d0086bdfc25addaf1051d799b (patch) | |
tree | 1dc11683170d45d80d7aab6eefdfcc836d3e773b /Prebuild/src/.svn | |
parent | Make it clear that the "create region" command will reference ini files in th... (diff) | |
download | opensim-SC_OLD-7e65590a55ba575d0086bdfc25addaf1051d799b.zip opensim-SC_OLD-7e65590a55ba575d0086bdfc25addaf1051d799b.tar.gz opensim-SC_OLD-7e65590a55ba575d0086bdfc25addaf1051d799b.tar.bz2 opensim-SC_OLD-7e65590a55ba575d0086bdfc25addaf1051d799b.tar.xz |
Update Prebuild.exe with Prebuild r323 + an existing OpenSim specific nant hack to correctly clean up chosen OpenSim exes and dlls in bin/ on a "nant clean"
Source code is included for reference. This can go away again once Prebuild is updated with a more general mechanism for cleaning up files.
The Prebuild source code here can be built with nant, or regnerated for other tools using the prebuild at {root}/bin/Prebuild.exe
Diffstat (limited to 'Prebuild/src/.svn')
-rw-r--r-- | Prebuild/src/.svn/all-wcprops | 23 | ||||
-rw-r--r-- | Prebuild/src/.svn/dir-prop-base | 16 | ||||
-rw-r--r-- | Prebuild/src/.svn/entries | 139 | ||||
-rw-r--r-- | Prebuild/src/.svn/prop-base/App.ico.svn-base | 5 | ||||
-rw-r--r-- | Prebuild/src/.svn/prop-base/Prebuild.cs.svn-base | 9 | ||||
-rw-r--r-- | Prebuild/src/.svn/prop-base/Prebuild.snk.svn-base | 5 | ||||
-rw-r--r-- | Prebuild/src/.svn/text-base/App.ico.svn-base | bin | 0 -> 4286 bytes | |||
-rw-r--r-- | Prebuild/src/.svn/text-base/Prebuild.cs.svn-base | 165 | ||||
-rw-r--r-- | Prebuild/src/.svn/text-base/Prebuild.snk.svn-base | bin | 0 -> 596 bytes |
9 files changed, 362 insertions, 0 deletions
diff --git a/Prebuild/src/.svn/all-wcprops b/Prebuild/src/.svn/all-wcprops new file mode 100644 index 0000000..bafaca9 --- /dev/null +++ b/Prebuild/src/.svn/all-wcprops | |||
@@ -0,0 +1,23 @@ | |||
1 | K 25 | ||
2 | svn:wc:ra_dav:version-url | ||
3 | V 45 | ||
4 | /svnroot/dnpb/!svn/ver/323/trunk/Prebuild/src | ||
5 | END | ||
6 | Prebuild.snk | ||
7 | K 25 | ||
8 | svn:wc:ra_dav:version-url | ||
9 | V 57 | ||
10 | /svnroot/dnpb/!svn/ver/96/trunk/Prebuild/src/Prebuild.snk | ||
11 | END | ||
12 | App.ico | ||
13 | K 25 | ||
14 | svn:wc:ra_dav:version-url | ||
15 | V 52 | ||
16 | /svnroot/dnpb/!svn/ver/96/trunk/Prebuild/src/App.ico | ||
17 | END | ||
18 | Prebuild.cs | ||
19 | K 25 | ||
20 | svn:wc:ra_dav:version-url | ||
21 | V 57 | ||
22 | /svnroot/dnpb/!svn/ver/308/trunk/Prebuild/src/Prebuild.cs | ||
23 | END | ||
diff --git a/Prebuild/src/.svn/dir-prop-base b/Prebuild/src/.svn/dir-prop-base new file mode 100644 index 0000000..68e5483 --- /dev/null +++ b/Prebuild/src/.svn/dir-prop-base | |||
@@ -0,0 +1,16 @@ | |||
1 | K 10 | ||
2 | svn:ignore | ||
3 | V 121 | ||
4 | *.mdp | ||
5 | *.mds | ||
6 | *.pidb | ||
7 | bin | ||
8 | obj | ||
9 | Include.am | ||
10 | Prebuild.csproj | ||
11 | Prebuild.csproj.user | ||
12 | Prebuild.exe.build | ||
13 | Prebuild.prjx | ||
14 | Prebuild.xml | ||
15 | |||
16 | END | ||
diff --git a/Prebuild/src/.svn/entries b/Prebuild/src/.svn/entries new file mode 100644 index 0000000..8284966 --- /dev/null +++ b/Prebuild/src/.svn/entries | |||
@@ -0,0 +1,139 @@ | |||
1 | 10 | ||
2 | |||
3 | dir | ||
4 | 323 | ||
5 | https://dnpb.svn.sourceforge.net/svnroot/dnpb/trunk/Prebuild/src | ||
6 | https://dnpb.svn.sourceforge.net/svnroot/dnpb | ||
7 | |||
8 | |||
9 | |||
10 | 2010-09-10T17:51:36.189738Z | ||
11 | 323 | ||
12 | jhurliman | ||
13 | has-props | ||
14 | |||
15 | |||
16 | |||
17 | |||
18 | |||
19 | |||
20 | |||
21 | |||
22 | |||
23 | |||
24 | |||
25 | |||
26 | |||
27 | 3355ff64-970d-0410-bbe8-d0fbd18be4fb | ||
28 | |||
29 | Prebuild.snk | ||
30 | file | ||
31 | |||
32 | |||
33 | |||
34 | |||
35 | 2010-09-10T22:51:45.000000Z | ||
36 | 89097ad015e09b35fc896e2128dea94d | ||
37 | 2006-01-19T19:45:13.000000Z | ||
38 | 45 | ||
39 | jendave | ||
40 | has-props | ||
41 | |||
42 | |||
43 | |||
44 | |||
45 | |||
46 | |||
47 | |||
48 | |||
49 | |||
50 | |||
51 | |||
52 | |||
53 | |||
54 | |||
55 | |||
56 | |||
57 | |||
58 | |||
59 | |||
60 | |||
61 | 596 | ||
62 | |||
63 | Core | ||
64 | dir | ||
65 | |||
66 | data | ||
67 | dir | ||
68 | |||
69 | App.ico | ||
70 | file | ||
71 | |||
72 | |||
73 | |||
74 | |||
75 | 2010-09-10T22:51:45.000000Z | ||
76 | 4ee5c8b292635af0bf1247d425ba2c0d | ||
77 | 2006-01-27T21:30:44.000000Z | ||
78 | 68 | ||
79 | jendave | ||
80 | has-props | ||
81 | |||
82 | |||
83 | |||
84 | |||
85 | |||
86 | |||
87 | |||
88 | |||
89 | |||
90 | |||
91 | |||
92 | |||
93 | |||
94 | |||
95 | |||
96 | |||
97 | |||
98 | |||
99 | |||
100 | |||
101 | 4286 | ||
102 | |||
103 | Prebuild.cs | ||
104 | file | ||
105 | |||
106 | |||
107 | |||
108 | |||
109 | 2010-09-10T22:51:45.000000Z | ||
110 | 55ae2c874ce7e9ab7f33cd6f75926733 | ||
111 | 2009-04-15T01:33:14.373570Z | ||
112 | 308 | ||
113 | kunnis | ||
114 | has-props | ||
115 | |||
116 | |||
117 | |||
118 | |||
119 | |||
120 | |||
121 | |||
122 | |||
123 | |||
124 | |||
125 | |||
126 | |||
127 | |||
128 | |||
129 | |||
130 | |||
131 | |||
132 | |||
133 | |||
134 | |||
135 | 5040 | ||
136 | |||
137 | Properties | ||
138 | dir | ||
139 | |||
diff --git a/Prebuild/src/.svn/prop-base/App.ico.svn-base b/Prebuild/src/.svn/prop-base/App.ico.svn-base new file mode 100644 index 0000000..5e9587e --- /dev/null +++ b/Prebuild/src/.svn/prop-base/App.ico.svn-base | |||
@@ -0,0 +1,5 @@ | |||
1 | K 13 | ||
2 | svn:mime-type | ||
3 | V 24 | ||
4 | application/octet-stream | ||
5 | END | ||
diff --git a/Prebuild/src/.svn/prop-base/Prebuild.cs.svn-base b/Prebuild/src/.svn/prop-base/Prebuild.cs.svn-base new file mode 100644 index 0000000..7b57b30 --- /dev/null +++ b/Prebuild/src/.svn/prop-base/Prebuild.cs.svn-base | |||
@@ -0,0 +1,9 @@ | |||
1 | K 13 | ||
2 | svn:eol-style | ||
3 | V 6 | ||
4 | native | ||
5 | K 12 | ||
6 | svn:keywords | ||
7 | V 23 | ||
8 | Author Date Id Revision | ||
9 | END | ||
diff --git a/Prebuild/src/.svn/prop-base/Prebuild.snk.svn-base b/Prebuild/src/.svn/prop-base/Prebuild.snk.svn-base new file mode 100644 index 0000000..5e9587e --- /dev/null +++ b/Prebuild/src/.svn/prop-base/Prebuild.snk.svn-base | |||
@@ -0,0 +1,5 @@ | |||
1 | K 13 | ||
2 | svn:mime-type | ||
3 | V 24 | ||
4 | application/octet-stream | ||
5 | END | ||
diff --git a/Prebuild/src/.svn/text-base/App.ico.svn-base b/Prebuild/src/.svn/text-base/App.ico.svn-base new file mode 100644 index 0000000..ac4ea6f --- /dev/null +++ b/Prebuild/src/.svn/text-base/App.ico.svn-base | |||
Binary files differ | |||
diff --git a/Prebuild/src/.svn/text-base/Prebuild.cs.svn-base b/Prebuild/src/.svn/text-base/Prebuild.cs.svn-base new file mode 100644 index 0000000..c485665 --- /dev/null +++ b/Prebuild/src/.svn/text-base/Prebuild.cs.svn-base | |||
@@ -0,0 +1,165 @@ | |||
1 | #region BSD License | ||
2 | /* | ||
3 | Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com) | ||
4 | |||
5 | Redistribution and use in source and binary forms, with or without modification, are permitted | ||
6 | provided 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 | |||
16 | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, | ||
17 | BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
18 | ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
19 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
20 | OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | ||
21 | OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | ||
22 | IN 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$ | ||
30 | * $Date$ | ||
31 | * $Revision$ | ||
32 | */ | ||
33 | #endregion | ||
34 | |||
35 | using System; | ||
36 | using System.Collections.Specialized; | ||
37 | using System.IO; | ||
38 | using System.Reflection; | ||
39 | using System.Runtime.InteropServices; | ||
40 | using System.EnterpriseServices.Internal; | ||
41 | |||
42 | using Prebuild.Core; | ||
43 | using Prebuild.Core.Utilities; | ||
44 | |||
45 | namespace 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 | #if !DEBUG | ||
91 | catch (Exception ex) | ||
92 | { | ||
93 | Console.WriteLine("Unhandled error: {0}", ex.Message); | ||
94 | Console.WriteLine("{0}", ex.StackTrace); | ||
95 | } | ||
96 | #endif | ||
97 | finally | ||
98 | { | ||
99 | if(kernel != null && 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/.svn/text-base/Prebuild.snk.svn-base b/Prebuild/src/.svn/text-base/Prebuild.snk.svn-base new file mode 100644 index 0000000..f9dce05 --- /dev/null +++ b/Prebuild/src/.svn/text-base/Prebuild.snk.svn-base | |||
Binary files differ | |||