]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Replace "bin/arc" with a shell script
authorepriestley <git@epriestley.com>
Tue, 20 Mar 2012 02:23:41 +0000 (19:23 -0700)
committerepriestley <git@epriestley.com>
Tue, 20 Mar 2012 02:23:41 +0000 (19:23 -0700)
Summary: Currently, we use a symlink. Under git bash, it tries to run the symlink. This is not a recipe for success. Instead, use a trivial wrapper script.

Test Plan: Ran "arc" from git bash.

Reviewers: Makinde, btrahan, Koolvin

Reviewed By: Koolvin

CC: aran, epriestley
Maniphest Tasks: T124

Differential Revision: https://secure.phabricator.com/D1939

bin/arc [changed from symlink to file mode: 0755]

diff --git a/bin/arc b/bin/arc
deleted file mode 120000 (symlink)
index 7aac748cc2c6d6de285a1ec0405844dfeecd02b6..0000000000000000000000000000000000000000
--- a/bin/arc
+++ /dev/null
@@ -1 +0,0 @@
-../scripts/arcanist.php
\ No newline at end of file
diff --git a/bin/arc b/bin/arc
new file mode 100755 (executable)
index 0000000000000000000000000000000000000000..bf49fa398215a095ee5e667b747b2240cc78b7a9
--- /dev/null
+++ b/bin/arc
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# NOTE: This file is a wrapper script instead of a symlink so it will work in
+# the Git Bash environment in Windows.
+
+exec `dirname $0`/../scripts/arcanist.php $@
+