[kupfer] wscript: Omit some repository files in dist tarball



commit 0c546711117d69703205d9a12ad75b5ac5292d2a
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Tue Aug 18 02:48:43 2009 +0200

    wscript: Omit some repository files in dist tarball
    
    Some files are quite useless outside the repo.
    
    debug.py -- for very limited use
    makedist.sh -- script for creating the dist tarball with git

 wscript |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/wscript b/wscript
index 0680f3e..cf2e5fd 100644
--- a/wscript
+++ b/wscript
@@ -39,6 +39,16 @@ VERSION_MAJOR_MINOR = ".".join(VERSION.split(".")[0:2])
 srcdir = '.'
 blddir = 'build'
 
+def dist_hook():
+	"""in the dist preparation dir, delete unwanted files"""
+	DIST_GIT_IGNORE = """
+		debug.py
+		makedist.sh
+		""".split()
+
+	for ignfile in filter(os.path.exists, DIST_GIT_IGNORE):
+		os.unlink(ignfile)
+
 def dist():
 	"""Make the dist tarball and print its SHA-1 """
 	def write_git_version():



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]