Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3769076
D3434.id9263.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
D3434.id9263.diff
View Options
diff --git a/utils/install-arc.sh b/utils/install-arc.sh
new file mode 100755
--- /dev/null
+++ b/utils/install-arc.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+# -------------------------------------------------------------
+# Install Arcanist for operations
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: BSD-2-Clause
+# -------------------------------------------------------------
+
+set -e
+
+ARC_DIR=/opt/phabricator
+BIN_DIR=/usr/local/bin
+
+# -------------------------------------------------------------
+# Clone repositories
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+mkdir -p "$ARC_DIR"
+cd "$ARC_DIR"
+
+git clone https://github.com/nasqueron/arcanist.git
+git clone https://github.com/nasqueron/shellcheck-linter.git
+
+# -------------------------------------------------------------
+# Provide symlink
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+ln -s "$ARC_DIR/arcanist/bin/arc" "$BIN_DIR/arc"
+
+# -------------------------------------------------------------
+# Check prerequisites
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+command -v php > /dev/null || echo ⚠️ You also need to install PHP to use Arcanist.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 12:40 (6 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260178
Default Alt Text
D3434.id9263.diff (1 KB)
Attached To
Mode
D3434: Install Arcanist
Attached
Detach File
Event Timeline
Log In to Comment