From: g0dil Date: Fri, 27 Mar 2009 10:37:22 +0000 (+0000) Subject: Fix debsrc target (include local_config.hh symlink into source archive) X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=cb766a7c53aa51dcbc72ab0753ca29a2cc17ff90;p=senf.git Fix debsrc target (include local_config.hh symlink into source archive) git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1171 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/SConstruct b/SConstruct index 5fe796b..943536e 100644 --- a/SConstruct +++ b/SConstruct @@ -102,7 +102,8 @@ if not logname: logname = pwd.getpwuid(os.getuid()).pw_name def dpkgIgnoredFilesOpts(target, source, env, for_signature): - return [ '-I%s' % os.path.split(f)[1] for f in env.subst('$DPKG_IGNORED_FILES').split() ] + return [ '-I%s' % (('/' in f) and (os.path.split(os.getcwd())[1])+f or f) + for f in env.subst('$DPKG_IGNORED_FILES').split() ] # Options used to debug inlining: # @@ -131,8 +132,8 @@ env.Append( 'PATH' : os.environ.get('PATH'), 'TEXINPUTS' : os.environ.get('TEXINPUTS',':'), }, - LOCAL_CONFIG_FILES = [ 'Doxyfile.local', 'SConfig', 'local_config.hh' ], - DPKG_IGNORED_FILES = [ '$LOCAL_CONFIG_FILES', '.svn', '_templates' ], + LOCAL_CONFIG_FILES = [ '/Doxyfile.local', '/SConfig', '/local_config.hh' ], + DPKG_IGNORED_FILES = [ '$LOCAL_CONFIG_FILES', '.svn', '/_templates' ], DPKG_IGNORED_FILES_OPTS = dpkgIgnoredFilesOpts, CLEAN_PATTERNS = [ '*~', '#*#', '*.pyc', 'semantic.cache', '.sconsign', '.sconsign.dblite' ], BUILDPACKAGE_COMMAND = "dpkg-buildpackage -us -uc -rfakeroot $DPKG_IGNORED_FILES_OPTS",