Skip to content

Instantly share code, notes, and snippets.

@notmii
Last active January 1, 2016 22:39
Show Gist options
  • Save notmii/8211775 to your computer and use it in GitHub Desktop.
Save notmii/8211775 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo apt-get remove --purge ctags
sudo apt-get install --yes auto-apt checkinstall
sudo apt-get install --yes subversion autoconf gcc
svn checkout https://svn.code.sf.net/p/ctags/code/trunk ctags-trunk
cd ctags-trunk
# Patch PHP Parser for better PHP 5.3+ support
wget http://sourceforge.net/p/ctags/patches/_discuss/thread/3a930d9f/1405/attachment/0000-PHP-parser-rewrite.patch
patch -p1 < 0000-PHP-parser-rewrite.patch
autoconf
autoheader
auto-apt run ./configure
make
sudo checkinstall
cd .. && rm ctags-trunk -rf
ctags --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment