From 47173f19c15703c63c75652e9182be4d4bbd69fe Mon Sep 17 00:00:00 2001
From: Sven Hoexter <sven@timegate.de>
Date: Thu, 17 May 2012 13:50:36 +0200
Subject: [PATCH] Move manual link creation from debian/rules to debian/links
 and thus make use of dh_link.

---
 debian/changelog |  7 +++++++
 debian/links     |  4 ++++
 debian/rules     | 11 -----------
 3 files changed, 11 insertions(+), 11 deletions(-)
 create mode 100644 debian/links

diff --git a/debian/changelog b/debian/changelog
index 8b49202..5efaf33 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+exfat-utils (0.9.7-2) UNRELEASED; urgency=low
+
+  * Move manual link creation from debian/rules to debian/links
+    and thus make use of dh_link.
+
+ -- Sven Hoexter <hoexter@debian.org>  Thu, 17 May 2012 13:50:03 +0200
+
 exfat-utils (0.9.7-1) unstable; urgency=low
 
   * New upstream release.
diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..b8d123b
--- /dev/null
+++ b/debian/links
@@ -0,0 +1,4 @@
+sbin/exfatfsck sbin/fsck.exfat
+sbin/mkexfatfs sbin/mkfs.exfat
+usr/share/man/man8/exfatfsck.8.gz usr/share/man/man8/fsck.exfat.8.gz
+usr/share/man/man8/mkexfatfs.8.gz usr/share/man/man8/mkfs.exfat.8.gz
diff --git a/debian/rules b/debian/rules
index 88c9fa1..dc721ab 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,14 +13,3 @@ override_dh_auto_build:
 override_dh_auto_clean:
 	scons -c
 	rm -f config.log
-
-override_dh_auto_install:
-	mkdir -p debian/exfat-utils/sbin
-	cd debian/exfat-utils/sbin && \
-		ln -s exfatfsck fsck.exfat; \
-		ln -s mkexfatfs mkfs.exfat
-
-	mkdir -p debian/exfat-utils/usr/share/man/man8
-	cd debian/exfat-utils/usr/share/man/man8 && \
-		ln -s exfatfsck.8.gz fsck.exfat.8.gz; \
-		ln -s mkexfatfs.8.gz mkfs.exfat.8.gz
-- 
2.39.5