3 # Install dependencies required to build and test Git on Linux and macOS
8 P4WHENCE
=http
://filehost.perforce.com
/perforce
/r
$LINUX_P4_VERSION
9 LFSWHENCE
=https
://github.com
/github
/git-lfs
/releases
/download
/v
$LINUX_GIT_LFS_VERSION
12 linux-clang|linux-gcc
)
13 sudo apt-add-repository
-y "ppa:ubuntu-toolchain-r/test"
14 sudo apt-get
-q update
15 sudo apt-get
-q -y install language-pack-is libsvn-perl apache2
18 sudo apt-get
-q -y install gcc-8
22 mkdir
--parents "$P4_PATH"
24 wget
--quiet "$P4WHENCE/bin.linux26x86_64/p4d"
25 wget
--quiet "$P4WHENCE/bin.linux26x86_64/p4"
29 mkdir
--parents "$GIT_LFS_PATH"
31 wget
--quiet "$LFSWHENCE/git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz"
32 tar --extract --gunzip --file "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz"
33 cp git-lfs-
$LINUX_GIT_LFS_VERSION/git-lfs .
37 brew update
>/dev
/null
38 # Uncomment this if you want to run perf tests:
39 # brew install gnu-time
40 test -z "$BREW_INSTALL_PACKAGES" ||
41 brew
install $BREW_INSTALL_PACKAGES
42 brew link
--force gettext
43 brew
install caskroom
/cask
/perforce
51 sudo apt-get
-q update
52 sudo apt-get
-q -y install coccinelle
55 sudo apt-get
-q update
56 sudo apt-get
-q -y install asciidoc xmlto
58 test -n "$ALREADY_HAVE_ASCIIDOCTOR" ||
59 gem
install --version 1.5.8 asciidoctor
63 if type p4d
>/dev
/null
&& type p4
>/dev
/null
65 echo "$(tput setaf 6)Perforce Server Version$(tput sgr0)"
67 echo "$(tput setaf 6)Perforce Client Version$(tput sgr0)"
70 if type git-lfs
>/dev
/null
72 echo "$(tput setaf 6)Git-LFS Version$(tput sgr0)"