bug 1323: ns-3 documentation does not build from release tarballs
authorTom Henderson <tomh@tomh.org>
Tue, 27 Dec 2011 13:08:20 -0800
changeset 47 a2dbb487c6bc
parent 46 6ca6adde5b95
child 48 5cc5216a7a85
bug 1323: ns-3 documentation does not build from release tarballs
dist.py
--- a/dist.py	Wed Dec 21 21:17:53 2011 -0800
+++ b/dist.py	Tue Dec 27 13:08:20 2011 -0800
@@ -21,6 +21,11 @@
         # directories to exclude
         while True:
             for i, dirname in enumerate(dirnames):
+                if os.path.islink (os.path.join(dirpath,dirname)):
+		    # Add, but do not follow, symbolic links
+                    srcpath = os.path.join(dirpath, dirname)
+                    tgtpath = os.path.join(tgtdir, reldirpath, dirname)
+                    tar.add(srcpath, tgtpath)
                 if exclude_dir_cb(reldirpath, dirname):
                     break
             else: