Skip to content

Instantly share code, notes, and snippets.

@letsgetrandy
Last active December 20, 2015 21:28
Show Gist options
  • Select an option

  • Save letsgetrandy/6197321 to your computer and use it in GitHub Desktop.

Select an option

Save letsgetrandy/6197321 to your computer and use it in GitHub Desktop.
ARCDIR = /usr/local/share/arcanist
BINPATH = /usr/bin/arc
PHPPATH = /usr/bin/php
help:
@echo "no target specified."
@echo "try:"
@echo " make [ install | update | config_linters ]"
@echo ""
config_linters:
arc set-config lint.engine ArcanistSingleLintEngine
arc set-config lint.engine.single.linter ArcanistScriptAndRegexLinter
arc set-config linter.scriptandregex.script ./lint.sh
arc set-config linter.scriptandregex.regex '/^(?P<message>.*)$/'
install: $(PHPPATH) update $(BINPATH)
update: $(ARCDIR)/arcanist
cd $(ARCDIR)/libphutil && git pull origin master
cd $(ARCDIR)/arcanist && git pull origin master
$(BINPATH):
sudo ln -s $(ARCDIR)/arcanist/bin/arc $(BINPATH)
chmod 755 $(BINPATH)
$(ARCDIR):
mkdir $(ARCDIR)
$(ARCDIR)/libphutil: | $(ARCDIR)
echo "$(ARCDIR)/libphutil"
cd $(ARCDIR) && git clone git://github.com/facebook/libphutil.git
$(ARCDIR)/arcanist: | $(ARCDIR)/libphutil
cd $(ARCDIR) && git clone git://github.com/facebook/arcanist.git
$(PHPPATH):
sudo apt-get install php5 libapache2-mod-php5
sudo apt-get install php5-cli
.PHONY: dummy config_linters install update
@letsgetrandy
Copy link
Author

When installing Arcanist, just type "make install" to run this installer at the command line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment