X-Git-Url: https://git.ralfj.de/auto-debuild.git/blobdiff_plain/97c237e196920f1224f0e3912deb321156ef17fa..16058e77e06a5e49f042d86622b66bba3a6d6247:/auto_debuild.py?ds=sidebyside 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