While building a Debian package we use a debian/mypackagename.install file to tell debhelper packaging tool where to copy files and folder.
The problem is that folders contain a .svn folder which is copied in to package tree and finally goes to target machine! is there a standard way to exclude .svn folders while package building?
I don't know how your build system looks in details but to exclude .svn (CVS, .git, etc.) you can use -X
option of dh_install
:
$ dh_install -X .svn
or export DH_ALWAYS_EXCLUDE variable in debian/rules
file:
$ cat debian/rules
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1
export DH_ALWAYS_EXCLUDE=CVS:.svn
%:
dh $@