Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F24607420
D3984.id10333.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3984.id10333.diff
View Options
diff --git a/utils/install-arc.sh b/utils/install-arc.sh
--- a/utils/install-arc.sh
+++ b/utils/install-arc.sh
@@ -12,6 +12,35 @@
ARC_DIR=/opt/phabricator
BIN_DIR=/usr/local/bin
+# -------------------------------------------------------------
+# Dependencies
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+install_dependencies()
+{
+ if [ "$ID" = "debian" ] || [ "$ID_LIKE" = "debian" ]; then
+ apt install git php php-curl php-dom shellcheck
+ elif [ "$ID" = "freebsd" ]; then
+ echo pkg install git php83 php83-curl php83-dom hs-ShellCheck
+ elif [ "$ID" = "fedora" ]; then
+ dnf install git php php-dom shellcheck
+ elif [ "$ID" = "darwin" ]; then
+ brew install git php shellcheck
+ else
+ echo "Can't detect OS, add a condition or a new block in install_dependencies. ID: '$ID'."
+ fi
+}
+
+if [ -f /etc/os-release ]; then
+ . /etc/os-release
+elif command -v brew; then
+ # macOS doesn't use os-release, but we can still detect Homebrew
+ ID=darwin
+fi
+install_dependencies
+
+exit 0
+
# -------------------------------------------------------------
# Clone repositories
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 2, 10:58 (12 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3487291
Default Alt Text
D3984.id10333.diff (1 KB)
Attached To
Mode
D3984: Help to install Arcanist dependencies
Attached
Detach File
Event Timeline
Log In to Comment