diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-10-05 19:18:20 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-10-15 15:06:05 +0400 |
commit | 71e17c3491dbed5a782737547b96272d8a9d9906 (patch) | |
tree | de0f1bc8cb107094cb8ef833a9fb852a7c8daac7 /build_files | |
parent | c2eb4c60eb1d63d04c1abcce2038aac27ac33aa1 (diff) |
Fix tgz script (included all files in submodules)
Diffstat (limited to 'build_files')
-rwxr-xr-x | build_files/utils/build_tgz.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/build_files/utils/build_tgz.sh b/build_files/utils/build_tgz.sh index 944bc528a37..9ffa72b8d61 100755 --- a/build_files/utils/build_tgz.sh +++ b/build_files/utils/build_tgz.sh @@ -22,15 +22,18 @@ 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])]" + # Build master list echo -n "Building manifest of files: \"$BASE_DIR/$MANIFEST\" ..." -git ls-files > $BASE_DIR/$MANIFEST +git ls-files | python -c "$FILTER_FILES_PY" > $BASE_DIR/$MANIFEST # Enumerate submodules for lcv in $(git submodule | awk '{print $2}'); do cd "$BASE_DIR" cd "$blender_srcdir/$lcv" - git ls-files | awk '$0="'"$lcv"/'"$0' >> $BASE_DIR/$MANIFEST + git ls-files | python -c "$FILTER_FILES_PY" | awk '$0="'"$lcv"/'"$0' >> $BASE_DIR/$MANIFEST cd "$BASE_DIR" done echo "OK" |