[petsc-dev] configure default to --with-etags=0 ?

Satish Balay balay at mcs.anl.gov
Mon Sep 8 18:30:53 CDT 2014


On Mon, 8 Sep 2014, Satish Balay wrote:

> On Mon, 8 Sep 2014, Jed Brown wrote:

> I guess I should look at speeding up etags [for usage from a git repo]

> > > balay at es^/scratch/balay/petsc(maint) $ date;make alletags; date
> > > Mon Sep  8 15:12:42 CDT 2014
> > > Mon Sep  8 15:14:49 CDT 2014

Currently etags is invoked in each dir in the source tree.

I've changed the code to get file list from each source dir, but
invoke the command only once [from PETSC_DIR]. This is much faster.

balay at es^/scratch/balay/petsc(maint) $ date; make alletags;date
Mon Sep  8 18:03:30 CDT 2014
Mon Sep  8 18:03:37 CDT 2014

i.e reduced time from 2-3min to 7sec

However there is some difference in output. 

>>>>>>>>>>>
balay at es^/scratch/balay/petsc/include(maint) $ etags makefile 
balay at es^/scratch/balay/petsc/include(maint) $ cat TAGS 


makefile,121
CFLAGS2,1
FFLAGS3,12
SOURCEC4,23
SOURCEF5,34
SOURCEH6,45
LIBBASE7,67
DIRS8,90
LOCDIR9,124
MANSEC10,144
balay at es^/scratch/balay/petsc/include(maint) $ etags ./makefile 
balay at es^/scratch/balay/petsc/include(maint) $ cat TAGS


makefile,12
CFLAGS2,1
balay at es^/scratch/balay/petsc/include(maint) $ 
<<<<<<<<<<

In the first case etags is processing 'makefile' as
--language=makefile. But in the second - case - its unable to infer
that info :(

Satish



More information about the petsc-dev mailing list