[Pkg-mono-svn-commits] rev 1036 - xsp/trunk/debian

Eduard Bloch blade@haydn.debian.org
Thu, 17 Jun 2004 01:58:34 -0600


Author: blade
Date: 2004-06-17 01:58:27 -0600 (Thu, 17 Jun 2004)
New Revision: 1036

Added:
   xsp/trunk/debian/index.aspx
Modified:
   xsp/trunk/debian/changelog
   xsp/trunk/debian/rules
Log:
Added index.aspx from 0-14 version, the current is broken (referering to
non-existant images)


Modified: xsp/trunk/debian/changelog
===================================================================
--- xsp/trunk/debian/changelog	2004-06-16 23:15:38 UTC (rev 1035)
+++ xsp/trunk/debian/changelog	2004-06-17 07:58:27 UTC (rev 1036)
@@ -1,4 +1,4 @@
-xsp (0.15-1) unstable; urgency=low
+xsp (0.15-0pre1v1) unstable; urgency=low
 
   * NOT RELEASED YET
 

Added: xsp/trunk/debian/index.aspx
===================================================================
--- xsp/trunk/debian/index.aspx	2004-06-16 23:15:38 UTC (rev 1035)
+++ xsp/trunk/debian/index.aspx	2004-06-17 07:58:27 UTC (rev 1036)
@@ -0,0 +1,34 @@
+<%@ language="C#" %>
+<%@ Import namespace="System.IO" %>
+<html>
+<head>
+<title>Welcome to Mono XSP!</title>
+</head>
+<body>
+<h1>Welcome to Mono XSP!</h1>
+<a href="http://www.go-mono.com"><img src="mono.png" alt="http://www.go-mono.com"></a>
+<p>Here are some ASP.NET examples:</p>
+<%
+DirectoryInfo dir = new DirectoryInfo (Path.GetDirectoryName (Request.PhysicalPath));
+FileInfo[] files = dir.GetFiles ();
+StringBuilder sb = new StringBuilder ();
+Hashtable styles = new Hashtable ();
+styles [".aspx"] = "background: #ffffff";
+styles [".ashx"] = "background: #00cccc";
+styles [".asmx"] = "background: #eeee00";
+for (int i=0; i < files.Length; i++) {
+	string fileName = Path.GetFileName(files[i].FullName);
+	string extension = Path.GetExtension (files[i].FullName);
+	if (styles.Contains (extension)) {
+		sb.AppendFormat ("<li><a style=\"{1}\" href=\"{0}\">{0}</a></li>\n", fileName, styles [extension]);
+	}
+}
+FileList.Text = sb.ToString ();
+%>
+<ul>
+<asp:Label id="FileList" runat="server" />
+</ul>
+<hr />
+<small>Generated: <%= DateTime.Now %></small>
+</html>
+

Modified: xsp/trunk/debian/rules
===================================================================
--- xsp/trunk/debian/rules	2004-06-16 23:15:38 UTC (rev 1035)
+++ xsp/trunk/debian/rules	2004-06-17 07:58:27 UTC (rev 1036)
@@ -86,6 +86,7 @@
 	dh_installdirs
 	dh_install 
 	cd test && cp ServiceClient.exe *.aspx *.ascx *.asmx *.ashx *.config *.asax *.xml *.png *.inc *.xsl *.cs $(CURDIR)/debian/asp.net-examples/usr/share/asp.net-demos/asp
+	cp -f debian/index.aspx $(CURDIR)/debian/asp.net-examples/usr/share/asp.net-demos/asp/
 	cp debian/web.config $(CURDIR)/debian/asp.net-examples/usr/share/asp.net-demos/asp
 	cd test && cp *.dll $(CURDIR)/debian/asp.net-examples/usr/share/asp.net-demos/asp/bin
 	rm -Rf $(CURDIR)/debian/asp.net-examples/usr/share/asp.net-demos/asp/monodoc.ashx