[Bf-blender-cvs] [37d748c] master: exclude git/arc files from tgz archive

Campbell Barton noreply at git.blender.org
Thu Jan 8 12:54:58 CET 2015


Commit: 37d748cd17590273b77a2850cc4ffd8d33051a6c
Author: Campbell Barton
Date:   Thu Jan 8 22:48:15 2015 +1100
Branches: master
https://developer.blender.org/rB37d748cd17590273b77a2850cc4ffd8d33051a6c

exclude git/arc files from tgz archive

===================================================================

M	build_files/utils/build_tgz.sh

===================================================================

diff --git a/build_files/utils/build_tgz.sh b/build_files/utils/build_tgz.sh
index 16899fd..3c92108 100755
--- a/build_files/utils/build_tgz.sh
+++ b/build_files/utils/build_tgz.sh
@@ -25,7 +25,16 @@ TARBALL="blender-$VERSION.tar.gz"
 cd "$blender_srcdir"
 
 # not so nice, but works
-FILTER_FILES_PY="import os, sys; [print(l[:-1]) for l in sys.stdin.readlines() if os.path.isfile(l[:-1])]"
+FILTER_FILES_PY=\
+"import os, sys; "\
+"[print(l[:-1]) for l in sys.stdin.readlines() "\
+"if os.path.isfile(l[:-1]) "\
+"if os.path.basename(l[:-1]) not in {"\
+"'.gitignore', "\
+"'.gitmodules', "\
+"'.arcconfig', "\
+"}"\
+"]"
 
 # Build master list
 echo -n "Building manifest of files:  \"$BASE_DIR/$MANIFEST\" ..."




More information about the Bf-blender-cvs mailing list