Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-10-13 04:28:00 +0300
committerCampbell Barton <campbell@blender.org>2022-10-13 05:20:58 +0300
commit375dafe3ef40eb61e831902a1ae45ecca555fec6 (patch)
tree16fc78fa5dc03304a874e990dafbc0e5c4fd481e /build_files
parentc34c6d3e25f2f4d96d124cb5ec43c4392e7de4dc (diff)
Build: use bash for build environment script
- Prefer bash over sh to so it's unambiguous which features can be used. - Use array syntax to specify main package list, allowing to comment why packages are required and making git-blame easier to track down commits that add/remove packages. - Add license header.
Diffstat (limited to 'build_files')
-rw-r--r--build_files/build_environment/linux/linux-centos7-setup.sh60
1 files changed, 48 insertions, 12 deletions
diff --git a/build_files/build_environment/linux/linux-centos7-setup.sh b/build_files/build_environment/linux/linux-centos7-setup.sh
index 84c14a1d2be..6cef1d718c7 100644
--- a/build_files/build_environment/linux/linux-centos7-setup.sh
+++ b/build_files/build_environment/linux/linux-centos7-setup.sh
@@ -1,4 +1,8 @@
-#!/bin/sh
+#!/usr/bin/env bash
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+# This script is part of the official build environment, see WIKI page for details.
+# https://wiki.blender.org/wiki/Building_Blender/Other/CentOS7ReleaseEnvironment
set -e
@@ -22,18 +26,50 @@ yum -y install centos-release-scl
yum -y install devtoolset-9
# Install packages needed for Blender's dependencies.
-yum -y install -y \
- git subversion bzip2 tar cmake3 patch make autoconf automake libtool \
- meson ninja-build \
- libXrandr-devel libXinerama-devel libXcursor-devel libXi-devel \
- libX11-devel libXt-devel \
- mesa-libEGL-devel mesa-libGL-devel mesa-libGLU-devel \
- zlib-devel \
- rubygem-asciidoctor \
- wget tcl yasm python36 python-setuptools bison flex \
- ncurses-devel \
- wayland-devel libwayland-client libwayland-server \
+PACKAGES=(
+ git
+ subversion
+ bzip2
+ tar
+ cmake3
+ patch
+ make
+ autoconf
+ automake
+ libtool
+ meson
+ ninja-build
+
+ libXrandr-devel
+ libXinerama-devel
+ libXcursor-devel
+ libXi-devel
+ libX11-devel libXt-devel
+
+ mesa-libEGL-devel
+ mesa-libGL-devel
+ mesa-libGLU-devel
+
+ zlib-devel
+ rubygem-asciidoctor
+ wget
+ tcl
+ yasm
+
+ python36
+ python-setuptools
+
+ bison
+ flex
+ ncurses-devel
+
+ wayland-devel
+ libwayland-client
+ libwayland-server
+)
+
+yum -y install -y ${PACKAGES[@]}
# Dependencies for Mesa
yum -y install expat-devel