[csw-maintainers] GAR: Preprocessing a postinstall file

Maciej (Matchek) Blizinski maciej at opencsw.org
Sun Dec 20 12:26:18 CET 2009


On Sat, Dec 12, 2009 at 2:53 AM, Ben Walton <bwalton at opencsw.org> wrote:
> Use the dynamic adm script capability in GAR.
>
> See docbook-style-xsl:
> http://sourceforge.net/apps/trac/gar/browser/csw/mgar/pkg/docbook-style-xsl/trunk/Makefile
> http://sourceforge.net/apps/trac/gar/browser/csw/mgar/pkg/docbook-style-xsl/trunk/files/CSWdocbookxsl.postinstall
>
> Just be careful to $$ when you need to use a shell variable as the
> script is subject to regular Makefile expansion rules.  Also, the
> final product will be much less readable than a normal script.
>
> Is this what you're after?

Yes, this is it.  I have some more questions:

- At which stage (fetch, extract, install, merge, package) does the
expansion take place?
- What if the pkgname contains a dash? Will "define
CSWfoo-bar_postinstall" work?



More information about the maintainers mailing list