]> err.no Git - util-linux/commitdiff
Add symlink from mkfs.swap to mkswap
authorTollef Fog Heen <tfheen@err.no>
Fri, 25 Feb 2011 12:23:07 +0000 (13:23 +0100)
committerTollef Fog Heen <tfheen@err.no>
Fri, 25 Feb 2011 12:56:23 +0000 (13:56 +0100)
This makes mkfs -t swap work, which is nice for consistency.

Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=544783
Signed-off-by: Tollef Fog Heen <tfheen@err.no>
disk-utils/Makefile.am

index ed0a6e4b8a803c6bfe6d378b8c8d010bacacb658..c2919848a662c7f2e2d757e61eb4cb38c286bf06 100644 (file)
@@ -69,3 +69,10 @@ if HAVE_SELINUX
 mkswap_LDADD += -lselinux
 endif
 
+install-exec-hook:
+       $(LN_S) mkswap $(DESTDIR)$(sbindir)/mkfs.swap
+       echo ".so man8/mkswap.8" > $(DESTDIR)$(man8dir)/mkfs.swap.8
+
+uninstall-hook:
+       rm -f $(DESTDIR)$(sbindir)/mkfs.swap
+       rm -f $(DESTDIR)$(man8dir)/mkfs.swap.8