Moar
    
        | author | Steve Losh <steve@stevelosh.com> | 
    
        | date | Mon, 18 Feb 2013 15:07:17 -0500 | 
    
        | parents | (none) | 
    
        | children | e7773a3a2eb7 | 
#!/bin/bash
set -e
/usr/local/bin/ctags -R . && sed -i .bak -E -e '/^[^	]+	[^	]+.py	.+v$/d' tags
mv tags tags1
ffind '.js' --literal | grep -Ev '(.min.js|jquery[-.].*.js|third-party|fixtures|rosetta|soundcloud|.json$|sample.dfxp|swfobject|flowplayer)' | xargs jsctags -f tags2
echo '!_TAG_FILE_FORMAT	2	/extended format; --format=1 will not append ;" to lines/' > tags
echo '!_TAG_FILE_SORTED	1	/0=unsorted, 1=sorted, 2=foldcase/' >> tags
cat tags1 tags2 | grep -Ev '^!' | grep -v 'anonymous_function' | sort >> tags
rm tags1 tags2