Don't use make to do this - just use autoconf, and let your configure
script deal with it:
configure.ac
AC_INIT(...)
...
svnrev=`svnversion .`
AC_SUBST(svnrev)
...
AC_CONFIG_FILES([Makefile ... poll.spec)
AC_OUTPUT
Now create a file called poll.spec.in that contains an
On Sun, Mar 23, 2008 at 7:27 AM, John Calcote [EMAIL PROTECTED] wrote:
Thanks, but the problem with this solution is that I would have to
rerun the .configure step each time. Forgetting to do that is as as
easy as forgetting to edit the spec file.
How do you know that you've committed
On Tue, Mar 25, 2008 at 10:30 AM, Bernd Jendrissek
[EMAIL PROTECTED] wrote:
On Sun, Mar 23, 2008 at 7:27 AM, John Calcote [EMAIL PROTECTED]
wrote:
Thanks, but the problem with this solution is that I would have to
rerun the .configure step each time. Forgetting to do that is as as
On Fri, Mar 21, 2008 at 3:28 PM, John Calcote [EMAIL PROTECTED]
wrote:
Jim,
Don't use make to do this - just use autoconf, and let your configure
script deal with it:
configure.ac
AC_INIT(...)
...
svnrev=`svnversion .`
AC_SUBST(svnrev)
...
AC_CONFIG_FILES([Makefile ...
On Fri, Mar 21, 2008 at 3:57 PM, Harlan Stenn [EMAIL PROTECTED] wrote:
I like to include my subversion version number in my rpm spec file so I
can
keep track of the source used to generate the binary. I've been
manually
changing it but since I forget to sometimes, I'd like for make to
You typo'd.
I wrote BUILT_SOURCES= ...
Check out the docs.
H
--
On Fri, Mar 21, 2008 at 3:57 PM, Harlan Stenn [EMAIL PROTECTED] wrote:
I like to include my subversion version number in my rpm spec file so I
can
keep track of the source used to generate the binary. I've been
Jim,
Thanks, but the problem with this solution is that I would have to
rerun the .configure step each time. Forgetting to do that is as as
easy as forgetting to edit the spec file.
Don't take this wrong - I totally believe you. But, I'm trying to figure
out why this has never been a problem
I like to include my subversion version number in my rpm spec file so I can
keep track of the source used to generate the binary. I've been manually
changing it but since I forget to sometimes, I'd like for make to generate
the spec file for me. I wrote a small perl program that reads a template
Jim,
I like to include my subversion version number in my rpm spec file so I can
keep track of the source used to generate the binary. I've been manually
changing it but since I forget to sometimes, I'd like for make to generate
the spec file for me. I wrote a small perl program that reads a
I like to include my subversion version number in my rpm spec file so I can
keep track of the source used to generate the binary. I've been manually
changing it but since I forget to sometimes, I'd like for make to generate
the spec file for me. I wrote a small perl program that reads a
You may also want:
noinst_DATA = poll.spec
H
I like to include my subversion version number in my rpm spec file so I can
keep track of the source used to generate the binary. I've been manually
changing it but since I forget to sometimes, I'd like for make to generate
the spec file for
11 matches
Mail list logo