|
5 | 5 |
|
6 | 6 | . ${0%/*}/lib.sh
|
7 | 7 |
|
8 |
| -P4WHENCE=http://filehost.perforce.com/perforce/r$LINUX_P4_VERSION |
| 8 | +P4WHENCE=https://cdist2.perforce.com/perforce/r$LINUX_P4_VERSION |
9 | 9 | LFSWHENCE=https://github.com/github/git-lfs/releases/download/v$LINUX_GIT_LFS_VERSION
|
10 | 10 | UBUNTU_COMMON_PKGS="make libssl-dev libcurl4-openssl-dev libexpat-dev
|
11 | 11 | tcl tk gettext zlib1g-dev perl-modules liberror-perl libauthen-sasl-perl
|
@@ -37,13 +37,15 @@ macos-latest)
|
37 | 37 | test -z "$BREW_INSTALL_PACKAGES" ||
|
38 | 38 | brew install $BREW_INSTALL_PACKAGES
|
39 | 39 | brew link --force gettext
|
40 |
| - brew install --cask --no-quarantine perforce || { |
41 |
| - # Update the definitions and try again |
42 |
| - cask_repo="$(brew --repository)"/Library/Taps/homebrew/homebrew-cask && |
43 |
| - git -C "$cask_repo" pull --no-stat --ff-only && |
44 |
| - brew install --cask --no-quarantine perforce |
45 |
| - } || |
46 |
| - brew install homebrew/cask/perforce |
| 40 | + mkdir -p $HOME/bin |
| 41 | + ( |
| 42 | + cd $HOME/bin |
| 43 | + wget -q "https://cdist2.perforce.com/perforce/r21.2/bin.macosx1015x86_64/helix-core-server.tgz" && |
| 44 | + tar -xf helix-core-server.tgz && |
| 45 | + sudo xattr -d com.apple.quarantine p4 p4d 2>/dev/null || true |
| 46 | + ) |
| 47 | + PATH="$PATH:${HOME}/bin" |
| 48 | + export PATH |
47 | 49 |
|
48 | 50 | if test -n "$CC_PACKAGE"
|
49 | 51 | then
|
@@ -78,15 +80,19 @@ linux-gcc-default)
|
78 | 80 | ;;
|
79 | 81 | esac
|
80 | 82 |
|
81 |
| -if type p4d >/dev/null && type p4 >/dev/null |
| 83 | +if type p4d >/dev/null 2>&1 && type p4 >/dev/null 2>&1 |
82 | 84 | then
|
83 | 85 | echo "$(tput setaf 6)Perforce Server Version$(tput sgr0)"
|
84 | 86 | p4d -V | grep Rev.
|
85 | 87 | echo "$(tput setaf 6)Perforce Client Version$(tput sgr0)"
|
86 | 88 | p4 -V | grep Rev.
|
| 89 | +else |
| 90 | + echo >&2 "WARNING: perforce wasn't installed, see above for clues why" |
87 | 91 | fi
|
88 |
| -if type git-lfs >/dev/null |
| 92 | +if type git-lfs >/dev/null 2>&1 |
89 | 93 | then
|
90 | 94 | echo "$(tput setaf 6)Git-LFS Version$(tput sgr0)"
|
91 | 95 | git-lfs version
|
| 96 | +else |
| 97 | + echo >&2 "WARNING: git-lfs wasn't installed, see above for clues why" |
92 | 98 | fi
|
0 commit comments