Save and restore autogenerated changelog when debian/rule's clean
authorhorms <horms>
Sun, 2 Apr 2006 07:38:06 +0000 (07:38 +0000)
committerhorms <horms@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
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

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/e17/libs/emotion@21711 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

debian/rules

index 410074a..cc66a7e 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