+
+Fri Mar 14 09:29:29 CET 2008 Paolo Molaro <lupus@ximian.com>
+
+ * driver.cs: added a bootstrap option to ignore sn failures for now
+ when bootstrapping a build. The option name will periodically change
+ so no one else can use it.
+
2008-03-14 Atsushi Enomoto <atsushi@ximian.com>
* driver.cs : temporarily disable r98206 strongname check
}
private static bool silent;
+ static bool in_bootstrap;
public static int Main (string [] args)
{
continue;
}
+ if (args [i] == "-bootstrap" || args [i] == "/bootstrap") {
+ in_bootstrap = true;
+ continue;
+ }
+
if (command == Command.Unknown) {
command = GetCommand (args [i]);
if (command != Command.Unknown) {
}
an = assembly.GetName ();
- /*
- Process sn_cmd = Process.Start ("sn", "-q -v " + name);
- sn_cmd.WaitForExit ();
- if (sn_cmd.ExitCode != 0) {
- WriteLine (string.Format (failure_msg, name) + "Attempt to install an assembly without a strong name.");
- return false;
+ try {
+ Process sn_cmd = Process.Start ("sn", "-q -v " + name);
+ sn_cmd.WaitForExit ();
+ if (sn_cmd.ExitCode != 0) {
+ if (in_bootstrap) {
+ WriteLine (string.Format (failure_msg, name) + "Attempt to install an assembly without a strong name (sn failed, continuing anyway).");
+ } else {
+ WriteLine (string.Format (failure_msg, name) + "Attempt to install an assembly without a strong name.");
+ return false;
+ }
+ }
+ } catch {
+ if (in_bootstrap) {
+ WriteLine (string.Format (failure_msg, name) + "Attempt to install an assembly without a strong name (sn failed, continuing anyway).");
+ } else {
+ WriteLine (string.Format (failure_msg, name) + "Attempt to install an assembly without a strong name.");
+ return false;
+ }
}
- */
pub_tok = an.GetPublicKeyToken ();
if (pub_tok == null || pub_tok.Length == 0) {
WriteLine (string.Format (failure_msg, name) + "Attempt to install an assembly without a strong name.");
# Copied from library.make
# -- begin --
-ifdef NO_INSTALL
-GACUTIL = :
-else
-gacutil = $(topdir)/class/lib/net_1_1_bootstrap/gacutil.exe
-GACUTIL = MONO_PATH="$(topdir)/class/lib/net_1_1_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(gacutil)
-endif
-
ifeq ($(PLATFORM), win32)
GACDIR = `cygpath -w $(mono_libdir)`
GACROOT = `cygpath -w $(DESTDIR)$(mono_libdir)`
for i in $(DLLFILES); do $(SN) $(SNFLAGS) $(OUTPUT_DIR)/$$i $(topdir)/class/mono.snk; done
mv $@t $@
-gacutil = $(topdir)/class/lib/net_1_1_bootstrap/gacutil.exe
-GACUTIL = MONO_PATH="$(topdir)/class/lib/net_1_1_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(gacutil)
-
TUNER_INSTALL_DIR = $(DESTDIR)$(mono_libdir)/mono/2.1
end-install: inst-mscorlib.dll inst-smcs.exe gac-System gac-System.Xml.Core gac-System.Core