]> git.deb.at Git - pkg/mmv.git/commitdiff
Use dh_auto_install, installs to debian/mmv instead of debian/tmp
authorAxel Beckert <abe@deuxchevaux.org>
Sun, 16 Sep 2012 16:30:40 +0000 (18:30 +0200)
committerAxel Beckert <abe@deuxchevaux.org>
Sun, 16 Sep 2012 17:14:59 +0000 (19:14 +0200)
Fix man page installation, no more need to use dh_installman and dh_install

debian/dirs
debian/install [deleted file]
debian/manpages [deleted file]
debian/patches/patches-as-of-mmv-1.01b-15.diff
debian/rules

index e77248175524d9f63749c2d6ca67159eeb4aa635..98d15831b4c595219d8284ae176a23d8860cce9e 100644 (file)
@@ -1 +1,2 @@
 usr/bin
+usr/share/man/man1
diff --git a/debian/install b/debian/install
deleted file mode 100644 (file)
index 17f805d..0000000
+++ /dev/null
@@ -1 +0,0 @@
-usr/bin/mmv
diff --git a/debian/manpages b/debian/manpages
deleted file mode 100644 (file)
index 6cd66f2..0000000
+++ /dev/null
@@ -1 +0,0 @@
-mmv.1
index b99d45beeea37d63eb03dd451dd44f08259bb7c1..e2f7242869cc9889877964ab1e0dd599bf130354 100644 (file)
@@ -696,9 +696,11 @@ Last-Update: 2012-09-16
  .PP
  .I Mmvpatch
  also determines the best way to uniquely identify directories.
---- mmv-1.01b.orig/Makefile
-+++ mmv-1.01b/Makefile
-@@ -1,10 +1,10 @@
+Index: mmv/Makefile
+===================================================================
+--- mmv.orig/Makefile  2012-09-16 18:24:31.375886230 +0200
++++ mmv/Makefile       2012-09-16 18:24:46.260122528 +0200
+@@ -1,16 +1,16 @@
  # Possible defines in CONF:
  #     IS_MSDOS IS_SYSV IS_V7 IS_BSD HAS_DIRENT HAS_RENAME MV_DIR
  
@@ -711,3 +713,10 @@ Last-Update: 2012-09-16
  LDFLAGS               =-s -N
  
  #IBIN         =$(LOCAL)$(ARCH)/bin
+ #IMAN         =$(LOCAL)$(ANY)/man
+ IBIN=$(DESTDIR)/usr/bin/
+-IMAN=$(DESTDIR)/usr/man/
++IMAN=$(DESTDIR)/usr/share/man/
+ mmv:          mmv.o
index 6736aa86c5b4e073ae5b192f8717ee9adf7bc74c..7bfcfaf98001947059dcfc8898f16ec357fa01fa 100755 (executable)
@@ -51,21 +51,19 @@ binary-arch: build
        dh_testdir
        test -f build || $(MAKE) -f debian/rules build
 # Makes a binary package.
-       /bin/rm -rf debian/tmp
        test -f stamp-build || $(MAKE) -f debian/rules build
        dh_installdirs
-       dh_install
+       dh_auto_install
        dh_strip
-       dh_installman
-       (cd debian/tmp/usr/bin;\
+       (cd debian/mmv/usr/bin;\
         ln -s mmv mcp; \
         ln -s mmv mad; \
         ln -s mmv mln;)
-       (cd debian/tmp/usr/share/man/man1;\
+       (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;)
-       install -d -g root -m 755 -o root debian/tmp/usr/share/doc/$(p)
+       install -d -g root -m 755 -o root debian/mmv/usr/share/doc/$(p)
        dh_installdocs
        dh_installchangelogs
        dh_compress