-
Notifications
You must be signed in to change notification settings - Fork 179
/
watchman.rb
32 lines (28 loc) · 1017 Bytes
/
watchman.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
class Watchman < Formula
desc "Watch files and take action when they change"
homepage "https://github.com/facebook/watchman"
url "https://github.com/facebook/watchman/releases/download/v2020.08.17.00/watchman-v2020.08.17.00-macos.zip"
sha256 "badb94e4ab43e7ea3c6b02e6fb0b0f4d7a2df8a1286088a9226018fce134ba87"
license "Apache-2.0"
version_scheme 1
def install
bin.install "bin/watchman"
lib.install Dir["lib/*"]
mkdir_p "/usr/local/var/run/watchman"
chmod 0o2777, "/usr/local/var/run/watchman"
end
def caveats
<<~EOS
If you plan to use watchman on more than one user, run `chmod g+s /usr/local/var/run/watchman`.
We cannot do this for you. See https://github.com/Homebrew/brew/issues/6019.
EOS
end
test do
system "watchman", "version"
end
end