From: Ralf Jung Date: Fri, 27 Jul 2012 22:21:35 +0000 (+0200) Subject: Add support for removing some files from the package X-Git-Url: https://git.ralfj.de/auto-debuild.git/commitdiff_plain/16058e77e06a5e49f042d86622b66bba3a6d6247?ds=inline Add support for removing some files from the package --- diff --git a/auto_debuild.py b/auto_debuild.py index 37d8443..90d616d 100755 --- a/auto_debuild.py +++ b/auto_debuild.py @@ -163,7 +163,11 @@ def createDebianFiles(config): r.dh += ['--parallel'] r.rules['builddeb'] = [safeCall(['dh_builddeb', "--destdir="+debDir])] # passing this gobally to dh results in weird problems (like stuff being installed there, and not in the package...) r.rules['auto_test'] = [] + # installation rule r.rules['auto_install'] = [safeCall(['dh_auto_install', '--destdir=debian/'+binaryName])] # install everything into the binary package + if 'binarySkipFiles' in config: + r.rules['auto_install'].append(safeCall(['cd', 'debian/'+binaryName]) + " && " + + safeCall(['rm'] + config['binarySkipFiles'])) # for debug packages if dbgPackage: r.rules['strip'] = [safeCall(['dh_strip', '--dbg-package='+binaryName+"-dbg"])] # put debug files in appropriate package