Looking at our src/tools/make_ctags, it was using an option that was
renamed and no longer documented since 2003;   this applied patch uses
the new option name.

If anyone using a ctags that old, I will find a way to support both, but
until then, I think we should just use the documented option.

-- 
  Bruce Momjian  <br...@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +
diff --git a/src/tools/make_ctags b/src/tools/make_ctags
new file mode 100755
index 4fc01f5..37ac134
*** a/src/tools/make_ctags
--- b/src/tools/make_ctags
***************
*** 5,24 ****
  trap "rm -f /tmp/$$" 0 1 2 3 15
  rm -f ./tags
  
! cv=`ctags --version 2>&1 | grep Exuberant`
  
! if [ -z "$cv" ]
! then	FLAGS="-dt"
! else	FLAGS="--c-types=+dfmstuv"
  fi
  
! find `pwd`/ \( -name _deadcode -prune \) -o \
! 		-type f -name '*.[chyl]' -print |
! 	xargs ctags "$FLAGS" -a -f tags
  
! if [ -z "$cv" ]
! then
! 	LC_ALL=C
  	export LC_ALL
  	sort tags >/tmp/$$ && mv /tmp/$$ tags
  fi
--- 5,45 ----
  trap "rm -f /tmp/$$" 0 1 2 3 15
  rm -f ./tags
  
! IS_EXUBERANT=""
! ctags --version 2>&1 | grep Exuberant && IS_EXUBERANT="Y"
  
! # List of kinds supported by Exuberant Ctags 5.8
! # generated by ctags --list-kinds
! #    c  classes
! #    d  macro definitions
! #    e  enumerators (values inside an enumeration)
! #    f  function definitions
! #    g  enumeration names
! #    l  local variables [off]
! #    m  class, struct, and union members
! #    n  namespaces
! #    p  function prototypes [off]
! #    s  structure names
! #    t  typedefs
! #    u  union names
! #    v  variable definitions
! #    x  external and forward variable declarations [off]
! 
! if [ "$IS_EXUBERANT" ]
! then	FLAGS="--c-kinds=+dfmstuv"
! else	FLAGS="-dt"
  fi
  
! # this is outputting the tags into the file 'tags', and appending
! find `pwd`/ -type f -name '*.[chyl]' -print |
! 	xargs ctags -a -f tags "$FLAGS"
  
! # Exuberant tags has a header that we cannot sort in with the other entries
! # so we skip the sort step
! # Why are we sorting this?  I guess some tag implementation need this,
! # particularly for append mode.  bjm 2012-02-24
! if [ ! "$IS_EXUBERANT" ]
! then	LC_ALL=C
  	export LC_ALL
  	sort tags >/tmp/$$ && mv /tmp/$$ tags
  fi
-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to