Instead of calling dh_link multiple times (once for each symlink) just
call it once, listing the requested links in debian/package.links.
---
 debian/rules        |    7 +------
 debian/wmaker.links |    2 ++
 2 files changed, 3 insertions(+), 6 deletions(-)
 create mode 100644 debian/wmaker.links

diff --git a/debian/rules b/debian/rules
index ecdf383..e3ff991 100755
--- a/debian/rules
+++ b/debian/rules
@@ -179,6 +179,7 @@ binary-arch: build
        $(RM) $(DEBTMPDIR)/$(MAN1DIR)/convertstyle*
        dh_installman -a
        dh_installchangelogs -a ChangeLog
+       dh_link -a
 #      dh_strip -a
        dh_lintian
        dh_compress -a
@@ -208,7 +209,6 @@ install-wmaker-stamp: build-wmaker-stamp
 # First, provide a wrapper to compensate for Window Maker's funny first
 # start up requierements
        mv $(DEBTMPDIR)/$(BINDIR)/wmaker $(DEBTMPDIR)/$(PKGLIBDIR)/WindowMaker
-       dh_link $(PKGLIBDIR)/WindowMaker $(BINDIR)/WindowMaker
        $(install_prog) debian/wmaker.sh $(DEBTMPDIR)/$(BINDIR)/wmaker
 
        -mv $(DEBTMPDIR)/$(BINDIR)/convertfonts $(DEBTMPDIR)/$(PKGLIBDIR)/
@@ -261,11 +261,6 @@ install-wmaker-stamp: build-wmaker-stamp
 # This has the new default Debian theme settings.
        cp debian/WindowMaker.default $(DEBTMPDIR)/$(DEFAULTSDIR)/WindowMaker
 
-# WPrefs
-# fix the location of WPrefs
-       # mv $(DEBTMPDIR)/$(WPREFSAPPDIR)/WPrefs $(DEBTMPDIR)/$(BINDIR)
-       # dh_link $(BINDIR)/WPrefs $(WPREFSAPPDIR)/WPrefs
-       dh_link $(WPREFSAPPDIR)/WPrefs $(BINDIR)/WPrefs
 # libwraster is compiled with tiff support, we don't need the xpm version
        $(RM) -r $(DEBTMPDIR)/$(WPREFSAPPDIR)/xpm
        $(RM) $(patsubst %.tiff,%.xpm,$(wildcard 
$(DEBTMPDIR)/$(WMSHAREDIR)/Icons/*.tiff))
diff --git a/debian/wmaker.links b/debian/wmaker.links
new file mode 100644
index 0000000..50151f5
--- /dev/null
+++ b/debian/wmaker.links
@@ -0,0 +1,2 @@
+usr/lib/WindowMaker/WindowMaker usr/bin/WindowMaker
+usr/lib/GNUstep/System/Applications/WPrefs.app/WPrefs usr/bin/WPrefs
-- 
1.7.1


-- 
To unsubscribe, send mail to [email protected].

Reply via email to