Save and restore autogenerated changelog when debian/rule's clean
authorHorms <horms@users.sourceforge.net>
Sun, 2 Apr 2006 07:38:06 +0000 (07:38 +0000)
committerHorms <horms@users.sourceforge.net>
Sun, 2 Apr 2006 07:38:06 +0000 (07:38 +0000)
target runs. Otherwise the following breaks because make distclean
removes autogenerated files, but debian/rules expects the changelog
to always be there:

fakeroot ./debian/rules clean ; ./debian/rules build

Note that this does not fix packages who are handled by cdbs,
that will need to be fixed separately

SVN revision: 21711

legacy/embryo/debian/rules
legacy/emotion/debian/rules

index 4d0925530fedd014f7a07413f6856d3237a68421..1a1f0ea9748ef59466b8afcd783e07f393cec4ca 100644 (file)
@@ -58,7 +58,9 @@ clean:
        rm -f build-stamp configure-stamp 
 
        # Add here commands to clean up after the build process.
+       -mv debian/changelog debian/changelog.saved
        -$(MAKE) distclean
+       -mv debian/changelog.saved debian/changelog
 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
        cp -f /usr/share/misc/config.sub config.sub
 endif
index 410074a10eaf7f330ad83173511dbf24f8c1d140..cc66a7e642af4c9417f5f5778f369ed3a4ac3edc 100644 (file)
@@ -51,7 +51,9 @@ clean:
        dh_testroot
        rm -f build-stamp configure-stamp
 
+       -mv debian/changelog debian/changelog.saved
        -$(MAKE) distclean
+       -mv debian/changelog.saved debian/changelog
 
        dh_clean