avoid cleaning 'debian'
authorReinhard Tartler <siretart@tauware.de>
Tue, 17 Nov 2020 12:53:45 +0000 (07:53 -0500)
committerReinhard Tartler <siretart@tauware.de>
Tue, 17 Nov 2020 18:18:02 +0000 (13:18 -0500)
debian/copyright
debian/rules

index 87f584d26d754e7932454135534012c732be5389..0b46ae3f66e53fcb9de93e9b72b588985330b0a9 100644 (file)
@@ -12,12 +12,10 @@ Files-Excluded:
  applications/WebGLGen
  applications/testapps
  build
- debian
+ debian/
  extra_lib/include
  modules/deprecated
- share/vis
  share/deprecated
- share/gui
 
 Files: *
 Copyright:
index 359f72194f9a32832f9c5b0a712c1e624e2c035a..723c11e36cf6d93a3b7ca436765a7a7bd60a07da 100755 (executable)
@@ -44,7 +44,7 @@ override_dh_auto_clean:
 
 override_dh_clean:
        ## Remove Files-Excluded (when built from checkout or non-DFSG tarball):
-       $(RM) -rv `perl -0nE 'say $$1 if m{^Files\-Excluded\:\s*(.*?)(?:\n\n|Files:|Comment:)}sm;' debian/copyright`
+       $(RM) -rv `perl -0nE 'say $$1 if m{^Files\-Excluded\:\s*(.*?)(?:\n\n|Files:|Comment:)}sm;' debian/copyright | grep -v 'debian/'`
        dh_clean config.h bin/gcc/libgpac*
        dh_clean gpac.pc include/gpac/revision.h
        find $(CURDIR) -name *.opic -delete