3 # Install dependencies required to build and test Git on Linux and macOS
6 .
${0%/*}/lib-travisci.sh
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 mkdir
--parents "$P4_PATH"
15 wget
--quiet "$P4WHENCE/bin.linux26x86_64/p4d"
16 wget
--quiet "$P4WHENCE/bin.linux26x86_64/p4"
20 mkdir
--parents "$GIT_LFS_PATH"
22 wget
--quiet "$LFSWHENCE/git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz"
23 tar --extract --gunzip --file "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz"
24 cp git-lfs-
$LINUX_GIT_LFS_VERSION/git-lfs .
29 # Uncomment this if you want to run perf tests:
30 # brew install gnu-time
31 brew
install git-lfs
gettext
32 brew link
--force gettext
33 brew
install caskroom
/cask
/perforce
37 echo "$(tput setaf 6)Perforce Server Version$(tput sgr0)"
39 echo "$(tput setaf 6)Perforce Client Version$(tput sgr0)"
41 echo "$(tput setaf 6)Git-LFS Version$(tput sgr0)"