Red Hat build scripts suggestion
Gerald (Jerry) Carter
jerry at samba.org
Fri Aug 29 18:23:56 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 20 Aug 2003, Ronan Waide wrote:
> In the current makerpms.sh file, there is the following snippet of
> code:
>
> if [ -r ~/.rpmmacros ]; then
> TOPDIR=`awk '/topdir/ {print $2}' < ~/.rpmmacros`
> if [ z$TOPDIR != "z" ]; then
> SPECDIR=${TOPDIR}/SPECS
> SRCDIR=${TOPDIR}/SOURCES
> fi
> fi
>
> This assumes that topdir is defined and that the spec and src dirs are
> below it. This, alas, is not the case for my own rpmmacros file. RPM
> provides a useful fix for this, though: rpm -E %macro prints the
> expansion of macro. So the above code could be replaced with:
>
> SPECDIR=`rpm -E %_specdir`
> SOURCEDIR=`rpm -E %_sourcedir`
I can do this but not for RPM v3.x (RH62). I'll have to leave that just
how it is currently.
jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/
iD8DBQE/T5o9IR7qMdg1EfYRAuxnAJ9c6e8e4HzH7szmYwqdii/BHEihFQCg7RHb
zhChBwfIjNsi5rSLlgSvJLw=
=jWBJ
-----END PGP SIGNATURE-----
More information about the samba-technical
mailing list