# HG changeset patch # User Mathieu Lacage # Date 1179395193 -7200 # Node ID 6285ef4d0fec26921f091056b1b0a0ca538ed90e # Parent 331b95a5404aae1ccf0ba4c29aefafc83f55d44f improve dist support diff -r 331b95a5404a -r 6285ef4d0fec SConstruct --- a/SConstruct Thu May 17 11:35:49 2007 +0200 +++ b/SConstruct Thu May 17 11:46:33 2007 +0200 @@ -6,8 +6,15 @@ ns3.build_dir = 'build-dir' ns3.version = '0.2' ns3.name = 'ns3' +ns3.distname = 'ns-3' ns3.doxygen_config = os.path.join('doc', 'doxygen.conf') ns3.add_extra_dist(os.path.join('doc', 'main.txt')) +ns3.add_extra_dist ('doc/contributing.txt') +ns3.add_extra_dist ('doc/build.txt') +ns3.add_extra_dist ('doc/mercurial.txt') +ns3.add_extra_dist ('README') +ns3.add_extra_dist ('RELEASE_NOTES') +ns3.add_extra_dist ('AUTHORS') # diff -r 331b95a5404a -r 6285ef4d0fec build.py --- a/build.py Thu May 17 11:35:49 2007 +0200 +++ b/build.py Thu May 17 11:46:33 2007 +0200 @@ -138,6 +138,7 @@ self.build_dir = 'build' self.version = '0.0.1' self.name = 'noname' + self.distname = 'noname' self.doxygen_config = '' def add(self, module): self.__modules.append(module) @@ -516,11 +517,12 @@ dist_list.append(os.path.join(module.dir, f)) for f in self.extra_dist: dist_list.append(f) + dist_list.append (self.doxygen_config) dist_list.append('SConstruct') dist_list.append('build.py') targets = [] - basename = self.name + '-' + self.version + basename = self.distname + '-' + self.version for src in dist_list: tgt = os.path.join(basename, src) targets.append(dist_env.MyCopyBuilder(target=tgt, source=src))