[Pkg-mono-svn-commits] rev 276 - monodoc/trunk/debian

Pablo Fischer pabl0-guest@quantz.debian.org
Tue, 17 Feb 2004 20:15:56 +0100


Author: pabl0-guest
Date: 2004-02-17 20:15:56 +0100 (Tue, 17 Feb 2004)
New Revision: 276

Added:
   monodoc/trunk/debian/monodoc-http.postinst
   monodoc/trunk/debian/monodoc-http.prerm
Log:
To manage the xsp or mod-mono virtual file


Added: monodoc/trunk/debian/monodoc-http.postinst
===================================================================
--- monodoc/trunk/debian/monodoc-http.postinst	2004-02-17 19:11:01 UTC (rev 275)
+++ monodoc/trunk/debian/monodoc-http.postinst	2004-02-17 19:15:56 UTC (rev 276)
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+if [ -x /usr/bin/xsp.exe -a -d /etc/xsp-snapshot ]; then
+    echo "Updating Root Servers..."
+    echo "/monodoc:/usr/share/monodoc-http" >> /etc/xsp-snapshot/virtual.conf
+fi
+
+if [ -x /usr/bin/mod-mono-server.exe -a -d /etc/mono-server-snapshot ]; then
+    echo "Updating Root Servers..."
+    echo "/monodoc:/usr/share/monodoc-http" >> /etc/mono-server-snapshot/virtual.conf
+fi


Property changes on: monodoc/trunk/debian/monodoc-http.postinst
___________________________________________________________________
Name: svn:executable
   + *

Added: monodoc/trunk/debian/monodoc-http.prerm
===================================================================
--- monodoc/trunk/debian/monodoc-http.prerm	2004-02-17 19:11:01 UTC (rev 275)
+++ monodoc/trunk/debian/monodoc-http.prerm	2004-02-17 19:15:56 UTC (rev 276)
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+
+if [ -f /etc/xsp-snapshot/virtual.conf ]; then
+    tempfile=`/bin/tempfile`
+    sed s/\\/monodoc:\\/usr\\/share\\/monodoc-http/ /etc/xsp-snapshot/virtual.conf > $tempfile
+    cp $tempfile /etc/xsp-snapshot/virtual.conf	
+    rm -f /etc/xsp-snapshot/virtual.conf
+fi
+
+if [ -f /etc/mono-server-snapshot/virtual.conf ]; then
+    tempfile=`/bin/tempfile`
+    sed s/\\/samples:\\/usr\\/share\\/monodoc-http/ /etc/xsp-snapshot/virtual.conf > $tempfile
+    cp $tempfile /etc/mono-server-snapshot/virtual.conf
+    rm -f /etc/mono-server-snapshot/virtual.conf
+fi


Property changes on: monodoc/trunk/debian/monodoc-http.prerm
___________________________________________________________________
Name: svn:executable
   + *