Use dh_link
authorAxel Beckert <abe@deuxchevaux.org>
Sun, 16 Sep 2012 16:42:17 +0000 (18:42 +0200)
committerAxel Beckert <abe@deuxchevaux.org>
Sun, 16 Sep 2012 17:14:59 +0000 (19:14 +0200)
debian/links [new file with mode: 0644]
debian/rules

diff --git a/debian/links b/debian/links
new file mode 100644 (file)
index 0000000..af4d89b
--- /dev/null
@@ -0,0 +1,6 @@
+usr/bin/mmv usr/bin/mcp
+usr/bin/mmv usr/bin/mad
+usr/bin/mmv usr/bin/mln
+usr/share/man/man1/mmv.1.gz usr/share/man/man1/mcp.1.gz
+usr/share/man/man1/mmv.1.gz usr/share/man/man1/mad.1.gz
+usr/share/man/man1/mmv.1.gz usr/share/man/man1/mln.1.gz
index 7bfcfaf98001947059dcfc8898f16ec357fa01fa..cbfa5f44da99a92e03a049fc75ed7efd1fdb3fda 100755 (executable)
@@ -55,14 +55,7 @@ binary-arch: build
        dh_installdirs
        dh_auto_install
        dh_strip
-       (cd debian/mmv/usr/bin;\
-        ln -s mmv mcp; \
-        ln -s mmv mad; \
-        ln -s mmv mln;)
-       (cd debian/mmv/usr/share/man/man1;\
-        ln -s mmv.1.gz mcp.1.gz; \
-        ln -s mmv.1.gz mad.1.gz; \
-        ln -s mmv.1.gz mln.1.gz;)
+       dh_link
        install -d -g root -m 755 -o root debian/mmv/usr/share/doc/$(p)
        dh_installdocs
        dh_installchangelogs