Rebase debian/rules 1.110.7-2_grml.01
authorMichael Prokop <devnull@localhost>
Sun, 25 Nov 2007 20:20:02 +0000 (21:20 +0100)
committerMichael Prokop <devnull@localhost>
Sun, 25 Nov 2007 20:20:02 +0000 (21:20 +0100)
debian/rules

index 09d9e17..0e1bf0e 100755 (executable)
@@ -8,7 +8,7 @@ upstream:
        rm -rf ../live-initramfs/.git
 
 build: build-stamp
        rm -rf ../live-initramfs/.git
 
 build: build-stamp
-build-stamp:
+build-stamp: patch
        dh_testdir
 
        # Building package
        dh_testdir
 
        # Building package
@@ -16,7 +16,7 @@ build-stamp:
 
        touch build-stamp
 
 
        touch build-stamp
 
-clean:
+clean: unpatch
        dh_testdir
        dh_testroot
        rm -f build-stamp
        dh_testdir
        dh_testroot
        rm -f build-stamp
@@ -26,6 +26,16 @@ clean:
 
        dh_clean
 
 
        dh_clean
 
+patch: patch-stamp
+
+patch-stamp:
+       dpatch apply-all
+       dpatch cat-all >patch-stamp
+
+unpatch:
+       dpatch deapply-all
+       rm -rf patch-stamp debian/patched
+
 install: build
        dh_testdir
        dh_testroot
 install: build
        dh_testdir
        dh_testroot
@@ -40,9 +50,6 @@ install: build
        rm -f debian/live-initramfs/usr/share/doc/live-initramfs/ChangeLog
        mv debian/live-initramfs/usr/share/doc/live-initramfs/ChangeLog.casper debian/live-initramfs/usr/share/doc/live-initramfs/changelog.casper
 
        rm -f debian/live-initramfs/usr/share/doc/live-initramfs/ChangeLog
        mv debian/live-initramfs/usr/share/doc/live-initramfs/ChangeLog.casper debian/live-initramfs/usr/share/doc/live-initramfs/changelog.casper
 
-       # Installing bug control
-       install -D -m 0755 debian/bug/script debian/live-initramfs/usr/share/bug/live-initramfs
-
 binary-arch: build install
 
 binary-indep: build install
 binary-arch: build install
 
 binary-indep: build install