[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_INIT receiving PACKAGE_VERSION from outside
From: |
Bruno Haible |
Subject: |
Re: AC_INIT receiving PACKAGE_VERSION from outside |
Date: |
Fri, 18 Mar 2005 13:30:38 +0100 |
User-agent: |
KMail/1.5 |
Sam Steingold wrote:
> > AC_INIT([foobar], m4_normalize(m4_include([version])))
> >
> > And write down your version string in the `version' file.
>
> what if my version is more complex?
> e.g.
> --------------------------------------------------------------
> # Version number and release date.
> VERSION_NUMBER=2.33.83
> RELEASE_DATE=2005-03-14 # in "date +%Y-%m-%d" format
> --------------------------------------------------------------
> do I need something like this:
>
> syscmd([. version.sh; echo "${VERSION_NUMBER} ${RELEASE_DATE}">version])
> AC_INIT([foobar], m4_normalize(m4_include([version])))
> syscmd([rm -f version])
You can use esyscmd in this case:
AC_INIT([foobar],
m4_normalize(esyscmd([. ./version.sh; echo "${VERSION_NUMBER}
${RELEASE_DATE}"])))
Bruno
- Re: AC_INIT receiving PACKAGE_VERSION from outside, (continued)
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Sam Steingold, 2005/03/11
- Message not available
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Bruno Haible, 2005/03/11
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Sam Steingold, 2005/03/11
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Bruno Haible, 2005/03/11
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Sam Steingold, 2005/03/11
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Bruno Haible, 2005/03/11
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Bruce Korb, 2005/03/12
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Alexandre Duret-Lutz, 2005/03/17
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Sam Steingold, 2005/03/18
- Re: AC_INIT receiving PACKAGE_VERSION from outside,
Bruno Haible <=
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Alexandre Duret-Lutz, 2005/03/18
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Bruno Haible, 2005/03/18
Message not available