From 96629dfe0e0c00c8ffbcd3f0a3a70f35eb42f29a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 8 Jan 2015 22:48:15 +1100 Subject: exclude git/arc files from tgz archive --- build_files/utils/build_tgz.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build_files/utils/build_tgz.sh b/build_files/utils/build_tgz.sh index 16899fd34b2..3c921081c29 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\" ..." -- cgit v1.2.3