Re: Share code between install-time script and trigger?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2005-11-28 at 11:52 -0500, James Olin Oden wrote:
> > >    %{expand: %(cat $path_to_your_code)}
> >
> > Or just
> >
> > Source1: my-shared-script
> > %include %{SOURCE1}
> >
> Much simpler solution.  Does the %include expand the macros in SOURCE1?

Yup

foo.script:
cat ../SOURCES/foo.script
echo %{_lib}

Source1: foo.script

%post
%include %{SOURCE1}

rpm -qp --scripts ../RPMS/dummy-1.0-2.i386.rpm
preinstall scriptlet (using /bin/sh):
echo lib

Paul

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux