Listing the "Blender Foundation" as copyright holder implied the Blender Foundation holds copyright to files which may include work from many developers. While keeping copyright on headers makes sense for isolated libraries, Blender's own code may be refactored or moved between files in a way that makes the per file copyright holders less meaningful. Copyright references to the "Blender Foundation" have been replaced with "Blender Authors", with the exception of `./extern/` since these this contains libraries which are more isolated, any changed to license headers there can be handled on a case-by-case basis. Some directories in `./intern/` have also been excluded: - `./intern/cycles/` it's own `AUTHORS` file is planned. - `./intern/opensubdiv/`. An "AUTHORS" file has been added, using the chromium projects authors file as a template. Design task: #110784 Ref !110783.
44 lines
1.3 KiB
Bash
Executable File
44 lines
1.3 KiB
Bash
Executable File
#!/bin/sh
|
|
# SPDX-FileCopyrightText: 2010-2023 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# This shell script checks out and compiles blender, tested on ubuntu 10.04
|
|
# assumes you have dependencies installed already
|
|
|
|
# See this page for more info:
|
|
# https://wiki.blender.org/wiki/Building_Blender/Linux/Generic_Distro/CMake
|
|
|
|
# grab blender
|
|
mkdir ~/blender-git
|
|
cd ~/blender-git
|
|
|
|
git clone https://projects.blender.org/blender/blender.git
|
|
cd blender
|
|
git submodule update --init --recursive
|
|
git submodule foreach git checkout main
|
|
git submodule foreach git pull --rebase origin main
|
|
|
|
# create build dir
|
|
mkdir ~/blender-git/build-cmake
|
|
cd ~/blender-git/build-cmake
|
|
|
|
# cmake without copying files for fast rebuilds
|
|
# the files from git will be used in place
|
|
cmake ../blender
|
|
|
|
# make blender, will take some time
|
|
make -j$(nproc)
|
|
|
|
# link the binary to blenders source directory to run quickly
|
|
ln -s ~/blender-git/build-cmake/bin/blender ~/blender-git/blender/blender.bin
|
|
|
|
# useful info
|
|
echo ""
|
|
echo "* Useful Commands *"
|
|
echo " Run Blender: ~/blender-git/blender/blender.bin"
|
|
echo " Update Blender: git pull --rebase; git submodule foreach git pull --rebase origin main"
|
|
echo " Reconfigure Blender: cd ~/blender-git/build-cmake ; cmake ."
|
|
echo " Build Blender: cd ~/blender-git/build-cmake ; make"
|
|
echo ""
|