Last active
December 20, 2015 21:28
-
-
Save letsgetrandy/6197321 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When installing Arcanist, just type "make install" to run this installer at the command line.