[Pkg-mono-svn-commits] rev 341 - mono-nethostmanager/trunk/debian

Pablo Fischer pabl0-guest@quantz.debian.org
Tue, 24 Feb 2004 19:57:06 +0100


Author: pabl0-guest
Date: 2004-02-24 19:57:06 +0100 (Tue, 24 Feb 2004)
New Revision: 341

Modified:
   mono-nethostmanager/trunk/debian/rules
Log:
* Added support for the cli:
 + The will be two files: one in usr/bin (without the .exe) and the other in /usr/share/dotnet/bin.
 + The first file will be linked to the cli-wrapper
 


Modified: mono-nethostmanager/trunk/debian/rules
===================================================================
--- mono-nethostmanager/trunk/debian/rules	2004-02-24 18:54:57 UTC (rev 340)
+++ mono-nethostmanager/trunk/debian/rules	2004-02-24 18:57:06 UTC (rev 341)
@@ -22,6 +22,11 @@
 	dh_installdirs
 	# Now we should install it..
 	$(MAKE) install prefix=$(CURDIR)/debian/mono-nethostmanager
+	# We should follow the MonoConventions
+	# First, copy the .exe file to the dotnet/bin directory
+	mv debian/mono-nethostmanager/usr/bin/*.exe debian/mono-nethostmanager/usr/share/dotnet/bin
+	# Link them to the cli-wrapper
+	for x in debian/mono-nethostmanager/usr/bin/*.exe ; do ln -sf cli-wrapper $${x%.exe} ; done
 
 binary-indep: build install
 	dh_testdir -i
@@ -32,11 +37,6 @@
 	dh_installchangelogs -i ChangeLog
 	dh_installdocs -i
 	dh_installdirs
-	# We should move nethostmanager to 
-	mv $(CURDIR)/debian/mono-nethostmanager/usr/bin/nethostmanager.exe \
-           $(CURDIR)/debian/mono-nethostmanager/usr/share/dotnet/exe/nethostmanager.exe
-	ln -sf cli-wrapper 
-
 	dh_installman doc/nethostmanager.1
 	dh_strip -i
 	dh_fixperms -i