On Wednesday 04 September 2002 6:49 pm, Angus Leeming wrote: > Would you like me to run this little shell script over LyX's .[Ch] files? > > #! /bin/sh > > for FILE in $* > do > DIR=`dirname ${FILE}` > BASE=`basename $1` > TMP=${DIR}/${BASE}.tmp > sed -e '/the LyX Team/d' \ > -e '/\\author/s/\(.*\), \(.*\)/\1/' \ > -e '/\\author/s/\(.*\) <\(.*\)>/\1/' \ > < ${FILE} > ${TMP} > cmp -s ${FILE} ${TMP} > if [ $? -eq 1 ]; then > diff -u ${FILE} ${TMP} > mv -i ${TMP} ${FILE} > fi > rm -f ${TMP} > done
Doing so results in the following headers to the files in src/graphics (attached). Is this what you're looking for? Angus
==> src/graphics/GraphicsCache.C <== /* * \file GraphicsCache.C * Read the file COPYING * * \author Baruch Even * \author Angus Leeming */ #include <config.h> ==> src/graphics/GraphicsCache.h <== // -*- C++ -*- /** * \file GraphicsCache.h * Read the file COPYING * * \author Baruch Even * \author Angus Leeming * * grfx::Cache is the manager of the image cache. * It is responsible for creating the grfx::CacheItem's and maintaining them. ==> src/graphics/GraphicsCacheItem.C <== /* * \file GraphicsCacheItem.C * Read the file COPYING * * \author Baruch Even * \author Herbert Voss * \author Angus Leeming */ #include <config.h> ==> src/graphics/GraphicsCacheItem.h <== // -*- C++ -*- /* * \file GraphicsCacheItem.h * Read the file COPYING * * \author Baruch Even * \author Angus Leeming * * The graphics cache is a container of grfx::CacheItems. * Each grfx::CacheItem, defined here represents a separate image file. ==> src/graphics/GraphicsConverter.C <== /** * \file GraphicsConverter.C * Read the file COPYING * * \author Angus Leeming */ #include <config.h> #ifdef __GNUG__ ==> src/graphics/GraphicsConverter.h <== // -*- C++ -*- /** * \file GraphicsConverter.h * Read the file COPYING * * \author Angus Leeming * * The controller of a conversion process from file AA of format A to * file BB of format B. * Once finished, a signal is emitted to inform any listeners (connected ==> src/graphics/GraphicsImage.C <== /* * \file GraphicsImage.C * Read the file COPYING * * \author Baruch Even * \author Angus Leeming * \author Herbert Voss */ #include <config.h> ==> src/graphics/GraphicsImage.h <== // -*- C++ -*- /** * \file GraphicsImage.h * Read the file COPYING * * \author Baruch Even * \author Angus Leeming * * An abstract base class for the images themselves. * Allows the user to retrieve the pixmap, once loaded and to issue commands ==> src/graphics/GraphicsImageXPM.C <== /* * \file GraphicsImageXPM.C * Read the file COPYING * * \author Baruch Even * \author Angus Leeming */ #include <config.h> ==> src/graphics/GraphicsImageXPM.h <== // -*- C++ -*- /** * \file GraphicsImageXPM.h * Read the file COPYING * * \author Baruch Even * \author Angus Leeming * * An instantiation of Image that makes use of libXPM to load and store * the image in memory. ==> src/graphics/GraphicsLoader.C <== /* * \file GraphicsLoader.C * Read the file COPYING * * \author Angus Leeming */ #include <config.h> #ifdef __GNUG__ ==> src/graphics/GraphicsLoader.h <== // -*- C++ -*- /** * \file GraphicsLoader.h * Read the file COPYING * * \author Angus Leeming * * The public face of the graphics cache. * * * The user supplies an image file and the display parameters. ==> src/graphics/GraphicsParams.C <== /* * \file GraphicsParams.C * Read the file COPYING * * \author Angus Leeming */ #include <config.h> #ifdef __GNUG__ ==> src/graphics/GraphicsParams.h <== // -*- C++ -*- /** * \file GraphicsParams.h * Read the file COPYING * * \author Angus Leeming * * Used internally by the grfx::Image. */ ==> src/graphics/GraphicsSupport.C <== /** * \file GraphicsSupport.C * Read the file COPYING * * \author Angus Leeming */ #include <config.h> #ifdef __GNUG__ ==> src/graphics/GraphicsSupport.h <== // -*- C++ -*- /** * \file GraphicsSupport.h * Read the file COPYING * * \author Angus Leeming */ #ifndef GRAPHICSSUPPORT_H #define GRAPHICSSUPPORT_H ==> src/graphics/GraphicsTypes.C <== // -*- C++ -*- /** * \file GraphicsTypes.C * Read the file COPYING * * \author Rob Lahaye */ #include "graphics/GraphicsTypes.h" ==> src/graphics/GraphicsTypes.h <== // -*- C++ -*- /** * \file GraphicsTypes.h * Read the file COPYING * * \author Angus Leeming * * All that header files outside the graphics subdirectory should need to * access. */ ==> src/graphics/PreviewImage.C <== /** * \file PreviewImage.C * Read the file COPYING * * \author Angus Leeming */ #include <config.h> #ifdef __GNUG__ ==> src/graphics/PreviewImage.h <== // -*- C++ -*- /** * \file PreviewImage.h * Read the file COPYING * * \author Angus Leeming */ #ifndef PREVIEWIMAGE_H #define PREVIEWIMAGE_H ==> src/graphics/PreviewLoader.C <== /* * \file PreviewLoader.C * Read the file COPYING * * \author Angus Leeming */ #include <config.h> #ifdef __GNUG__ ==> src/graphics/PreviewLoader.h <== // -*- C++ -*- /** * \file PreviewLoader.h * Read the file COPYING * * \author Angus Leeming * * grfx::PreviewLoader collects latex snippets together. Then, on a * startLoading() call, these are dumped to file and processed, converting * each snippet to a separate bitmap image file. Once a bitmap file is ready ==> src/graphics/PreviewedInset.C <== // -*- C++ -*- /** * \file PreviewedInset.C * Read the file COPYING * * \author Angus Leeming */ #ifdef __GNUG__ #pragma implementation ==> src/graphics/PreviewedInset.h <== // -*- C++ -*- /** * \file PreviewedInset.h * Read the file COPYING * * \author Angus Leeming * * grfx::PreviewedInset is an abstract base class that can help insets to * generate previews. The daughter class must instantiate three small * methods. The Inset would own an instance of this daughter class. ==> src/graphics/Previews.C <== /* * \file Previews.C * Read the file COPYING * * \author Angus Leeming */ #include <config.h> #ifdef __GNUG__ ==> src/graphics/Previews.h <== // -*- C++ -*- /** * \file Previews.h * Read the file COPYING * * \author Angus Leeming * * grfx::Previews is a singleton class that stores the grfx::PreviewLoader * for each buffer requiring one. */