فهرست منبع

++ data/net_2_0/Browsers/ChangeLog (revision 0)

	* Compat.browser: added.  Provides browser definitions with
	compatible IDs.


++ data/net_2_0/ChangeLog	(working copy)

	* Makefile.am: added Browsers/Compat.browser

++ ChangeLog	(working copy)

	* configure.in, runtime/Makefile.am: create a symlink at
	mono/runtime/etc/mono/2.0/Browsers/Compat.browser similar to machine.config


svn path=/trunk/mono/; revision=100147
Dean Brettle 18 سال پیش
والد
کامیت
44a4774c2b

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-04-08  Dean Brettle  <[email protected]>
+
+	* configure.in, runtime/Makefile.am: create a symlink at
+	mono/runtime/etc/mono/2.0/Browsers/Compat.browser similar to machine.config
+
 2008-03-26  Massimiliano Mantione  <[email protected]>
 	* configure.in: Added PLATFORM_LINUX automake conditional.
 

+ 15 - 0
configure.in

@@ -2130,6 +2130,20 @@ AC_CONFIG_COMMANDS([runtime/etc/mono/browscap.ini],
     cd $depth
 ],[LN_S='$LN_S'])
 
+AC_CONFIG_COMMANDS([runtime/etc/mono/2.0/Browsers/Compat.browser],
+[   depth=../../../../..
+    case $srcdir in
+    [[\\/$]]* | ?:[[\\/]]* ) reldir=$srcdir ;;
+    .) reldir=$depth ;;
+    *) reldir=$depth/$srcdir ;;
+    esac
+    $ac_aux_dir/install-sh -d runtime/etc/mono/2.0/Browsers/
+    cd runtime/etc/mono/2.0/Browsers
+    rm -f Compat.browser
+    $LN_S $reldir/data/net_2_0/Browsers/Compat.browser Compat.browser
+    cd $depth
+],[LN_S='$LN_S'])
+
 AC_OUTPUT([
 Makefile
 mono-uninstalled.pc
@@ -2178,6 +2192,7 @@ docs/Makefile
 data/Makefile
 data/net_1_1/Makefile
 data/net_2_0/Makefile
+data/net_2_0/Browsers/Makefile
 data/mint.pc
 data/mono.pc
 data/mono-cairo.pc

+ 6 - 0
data/net_2_0/Browsers/ChangeLog

@@ -0,0 +1,6 @@
+2008-03-23  Dean Brettle  <[email protected]>
+
+	* Compat.browser: added.  Provides browser definitions with
+	compatible IDs.
+
+

+ 42 - 0
data/net_2_0/Browsers/Compat.browser

@@ -0,0 +1,42 @@
+<!--
+    This file defines some of the browsers that Microsoft's implementation provides in
+    <windir>\Microsoft.NET\Framework\<ver>\CONFIG\Browsers\*.browser
+	
+	It is not derived from any file distributed with Microsoft's implementation.  Since
+	we can't distribute MS's browser files, we use browscap.ini to determine 
+	browser capabilities.  Then, if and only if the application contains App_Browser/*.browser
+	files and we are using .NET 2.0 or higher, we supplement the capabilities with the 
+	information in those files and the files in this directory.  The primary goal of this file
+	is provide browser definitions that might be referenced in App_Browser/*.browser files.
+-->
+<browsers>
+  <defaultBrowser id="Default">
+  </defaultBrowser>
+  <browser id="Default">
+    <identification>
+    	<userAgent match="." />
+    </identification>
+  </browser>
+  <browser id="IE6to9" parentID="Default">
+    <identification>
+      <capability name="majorver" match="^[6-9]" />
+      <capability name="browser" match="^(IE|AOL)$" />
+    </identification>
+  </browser>
+  <browser id="Opera8to9" parentID="Default">
+    <identification>
+      <capability name="majorver" match="^[8-9]" />
+      <capability name="browser" match="^Opera$" />
+    </identification>
+  </browser>
+  <browser id="Safari" parentID="Default">
+    <identification>
+      <capability name="browser" match="^Safari$" />
+    </identification>
+  </browser>
+  <browser id="Mozilla" parentID="Default">
+    <identification>
+      <capability name="browser" match="^Mozilla" />
+    </identification>
+  </browser>
+</browsers>

+ 6 - 0
data/net_2_0/Browsers/Makefile.am

@@ -0,0 +1,6 @@
+monodir = $(sysconfdir)/mono/2.0/Browsers
+
+EXTRA_DIST =  Compat.browser
+
+mono_DATA =  Compat.browser
+

+ 4 - 0
data/net_2_0/ChangeLog

@@ -1,3 +1,7 @@
+2008-03-23  Dean Brettle  <[email protected]>
+
+	* Makefile.am: added Browsers/Compat.browser
+
 2008-02-29  Marek Habersack  <[email protected]>
 
 	* machine.config: added an entry to ignore the browserCaps section.

+ 2 - 0
data/net_2_0/Makefile.am

@@ -1,3 +1,5 @@
+SUBDIRS = Browsers
+
 monodir = $(sysconfdir)/mono/2.0
 
 EXTRA_DIST =  machine.config \

+ 2 - 1
runtime/Makefile.am

@@ -6,12 +6,13 @@ tmpinst = _tmpinst
 noinst_SCRIPTS = mono-wrapper monodis-wrapper
 
 etctmp = etc
-symlinks = etc/mono/1.0/machine.config etc/mono/2.0/machine.config etc/mono/2.0/web.config etc/mono/browscap.ini
+symlinks = etc/mono/1.0/machine.config etc/mono/2.0/machine.config etc/mono/2.0/web.config etc/mono/browscap.ini etc/mono/2.0/Browsers/Compat.browser
 
 etc/mono/1.0/machine.config: $(top_srcdir)/data/net_1_1/machine.config
 etc/mono/2.0/machine.config: $(top_srcdir)/data/net_2_0/machine.config
 etc/mono/2.0/web.config: $(top_srcdir)/data/net_2_0/web.config
 etc/mono/browscap.ini: $(top_srcdir)/data/browscap.ini
+etc/mono/2.0/Browsers/Compat.browser: $(top_srcdir)/data/net_2_0/Browsers/Compat.browser
 
 $(symlinks):
 	cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@