]> git.deb.at Git - pkg/mmv.git/commitdiff
Replace $(checkdir) with dh_testdir
authorAxel Beckert <abe@deuxchevaux.org>
Sun, 16 Sep 2012 15:28:01 +0000 (17:28 +0200)
committerAxel Beckert <abe@deuxchevaux.org>
Sun, 16 Sep 2012 15:28:01 +0000 (17:28 +0200)
debian/rules

index f6a401a96b30a936559b09e4ba579b228b61a766..daa79e6d9eab5896df3da915ce03a0e0173110e6 100755 (executable)
@@ -35,13 +35,13 @@ dir = `pwd`
 
 build:
 # Builds the binary package.
-       $(checkdir)
+       dh_testdir
        $(MAKE) CC="$(CC)" LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)"
        touch build
 
 clean:
 # Undoes the effect of `make -f debian/rules build'.
-       $(checkdir)
+       dh_testdir
        [ ! -f Makefile ] || $(MAKE) clean
        -rm -f debian/files* debian/substvars* debian/*~ core */core *~
        rm -rf debian/tmp
@@ -50,10 +50,10 @@ clean:
 binary: binary-arch binary-indep
 
 binary-indep:
-       $(checkdir)
+       dh_testdir
 
 binary-arch: build
-       $(checkdir)
+       dh_testdir
        test -f build || $(MAKE) -f debian/rules build
 # Makes a binary package.
        /bin/rm -rf debian/tmp
@@ -95,7 +95,3 @@ binary-arch: build
        cd debian/tmp && find * -type f ! -regex '^DEBIAN/.*' -print0 | \
                 xargs -r0 md5sum > DEBIAN/md5sums
        dpkg --build debian/tmp && dpkg-name -o -s .. debian/tmp.deb
-
-define checkdir
-        test -f mmv.1
-endef