#!/bin/sh # # C.sum - extracts procedure names, #include'd filenames, and comments, then # - wraps the lot as being "Partial-Text" # # $Id: C.sum,v 2.1 1997/09/11 17:56:33 sxw Exp $ # ############################################################################# # # Harvest Indexer http://harvest.sourceforge.net/ # ----------------------------------------------- # # The Harvest Indexer is a continued development of code developed by # the Harvest Project. Development is carried out by numerous individuals # in the Internet community, and is not officially connected with the # original Harvest Project or its funding sources. # # Please mail lee@arco.de if you are interested in participating # in the development effort. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # ############################################################################ ( # # Choose one tag file generator you want to use: # # Standard ctags #( ctags -t -x -w $1 | awk '{print $1}' ); # Emacs' etags #( etags -x $1 | awk '{print $1}' ); # Darren Hiebert's Exuberant ctags ( ctags -x $1 | awk '{print $1}' ); ( cat $1 | perl -ne 'print "$1\n" if (/^#\s*include\s*["<](.*)[">].*$/o);'); ( print-c-comments $1 | head -100 ); ) | wrapit "Partial-Text" exit 0