Fix last commit, making archive from source dir
authorCampbell Barton <ideasman42@gmail.com>
Tue, 16 Sep 2014 03:27:05 +0000 (13:27 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 16 Sep 2014 03:27:05 +0000 (13:27 +1000)
build_files/utils/build_tgz.sh

index 577bdb4..b0ff8ea 100755 (executable)
@@ -20,6 +20,7 @@ fi
 MANIFEST="blender-$VERSION-manifest.txt"
 TARBALL="blender-$VERSION.tar.gz"
 
+cd "$blender_srcdir"
 
 # Build master list
 echo -n "Building manifest of files:  \"$BASE_DIR/$MANIFEST\" ..."
@@ -27,8 +28,10 @@ git ls-files > $BASE_DIR/$MANIFEST
 
 # Enumerate submodules
 for lcv in $(git submodule | cut -f2 -d" "); do
+       cd "$BASE_DIR"
        cd "$blender_srcdir/$lcv"
        git ls-files | awk '$0="'"$lcv"/'"$0' >> $BASE_DIR/$MANIFEST
+       cd "$BASE_DIR"
 done
 echo "OK"