Re: [greenstone-users] fiddling with macros

From Michael Dewsnip
DateThu, 26 Jan 2006 17:16:05 +1300
Subject Re: [greenstone-users] fiddling with macros
In-Reply-To (43D4B60B-2090500-gmx-net)
Dear Jens,

Yes, you're right: expand_macros.pl is a fantastic tool for browsing the
macros. (I think we've been grepping the macrofiles for so long that
we're stuck in our ways, and forget to use expand_macros.pl and
recommend it to others -- thanks for your reminder.)

I have just committed the latest version of expand_macros.pl into CVS,
and this will be included in Greenstone v2.63 (released in a few days).

Thanks again for your contribution!

All the best,

Michael

jens wille wrote:

>hi there!
>
>Katherine Don [23.01.2006 01:53]:
>
>
>>Macro files can be a bit tricky to work with, you often need to
>>look through several macros, which call other macros etc before
>>finding the one you need. But have a play with it and hopefully
>>you can produce the search page that you want.
>>
>>
>well, that's exactly what expand_macros.pl was intended for ;-)
>
>for those who don't know about it: it's a little perl script that
>reads all the macro files (*.dm) of your greenstone installation and
>allows you to search for particular macro definitions and -
>recursively - for macro definitions used within this definition ...
>(up to a specified level) - and a few things more.
>
>it's part of the greenstone distribution since v2.62 and also
>available for download at [1] (@greenstone team: the current version
>has been slightly modified as compared to the one in cvs).
>
>[1] <http://blackwinter.de/tmp/expand_macros.pl.gz>
>
>in case you download the current version: just gunzip, cp to
>$GSDLHOME/bin/scripts, chmod a+x (if necessary) - that's it ;-)
>
>type 'expand_macros.pl -h' to get an impression of its usage and
>maybe even see the comments at the beginning of the source file.
>
>(note that it's not explicitly designed to run on systems other than
>a current linux - may work anyway; if not just drop me a line)
>
>i'm not sure if this script might be of help to somebody - to me it
>definitely is ;-)
>
>cheers
>jens
>
>_______________________________________________
>greenstone-users mailing list
>greenstone-users@list.scms.waikato.ac.nz
>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>
>
>