[csw-maintainers] GAR: Preprocessing a postinstall file
Ben Walton
bwalton at opencsw.org
Sat Dec 12 03:53:48 CET 2009
Excerpts from Maciej (Matchek) Blizinski's message of Fri Dec 11 20:27:14 -0500 2009:
> Suppose I have a file CSWfoo.postinstall, which has some variables
> which need to be substituted before the file can be shipped.
> Something along the lines of:
>
> mycommand=@bindir@/foo
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?
Thanks
-Ben
--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302
GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
Contact me to arrange for a CAcert assurance meeting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.opencsw.org/pipermail/maintainers/attachments/20091211/07ecbe80/attachment-0002.asc>
More information about the maintainers
mailing list