[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Make CVS HEAD version build out of the box
From: |
Yongwei Wu |
Subject: |
Re: Make CVS HEAD version build out of the box |
Date: |
Tue, 2 Oct 2007 20:16:36 +0800 |
On 02/10/2007, Paul Smith <address@hidden> wrote:
> On Mon, 2007-10-01 at 22:36 +0800, Yongwei Wu wrote:
> > I mean, which is the official position where I can grab the version
> > number (instead of running autoreconf)?
>
> The official version number for GNU make is kept in the configure.in
> file, here:
>
> AC_INIT([GNU make],[3.81],address@hidden)
>
> All other instances of the version, including the one in the GNU make
> manual, are derived from this.
With this piece of information, I would like to have such a patch:
2007-10-02 Yongwei Wu <address@hidden>
* make_config.h.W32.sh: New script to create config.h.W32 from
config.h.W32.template, updating PACKAGE and VERSION.
* build_w32.bat: Create config.h.W32 using the script above,
if it does exist.
Index: build_w32.bat
===================================================================
RCS file: /sources/make/make/build_w32.bat,v
retrieving revision 2.13
diff -u -r2.13 build_w32.bat
--- build_w32.bat 4 Jul 2007 19:35:17 -0000 2.13
+++ build_w32.bat 2 Oct 2007 10:14:44 -0000
@@ -16,6 +16,7 @@
rem You should have received a copy of the GNU General Public License along
rem with this program. If not, see <http://www.gnu.org/licenses/>.
+if not exist config.h.W32 sh make_config.h.W32.sh
if not exist config.h copy config.h.W32 config.h
cd w32\subproc
echo "Creating the subproc library"
Index: make_config.h.W32.sh
===================================================================
RCS file: make_config.h.W32.sh
diff -N make_config.h.W32.sh
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ make_config.h.W32.sh 2 Oct 2007 10:14:45 -0000
@@ -0,0 +1,3 @@
+#! /bin/sh
+VERSION=`sed -n 's/^AC_INIT(\[GNU make\],\[\([^]]\+\)\].*/\1/p' configure.in`
+sed -e "s/%PACKAGE%/make/" -e "s/%VERSION%/$VERSION/"
config.h.W32.template > config.h.W32
Is it OK?
Best regards,
Yongwei
--
Wu Yongwei
URL: http://wyw.dcweb.cn/
- Re: Make CVS HEAD version build out of the box, (continued)
- Re: Make CVS HEAD version build out of the box, Eli Zaretskii, 2007/10/01
- Re: Make CVS HEAD version build out of the box, Earnie Boyd, 2007/10/01
- Re: Make CVS HEAD version build out of the box, Yongwei Wu, 2007/10/01
- Re: Make CVS HEAD version build out of the box, Eli Zaretskii, 2007/10/01
- Re: Make CVS HEAD version build out of the box, Yongwei Wu, 2007/10/02
- Re: Make CVS HEAD version build out of the box, Earnie Boyd, 2007/10/02
- Re: Make CVS HEAD version build out of the box, Eli Zaretskii, 2007/10/02
- Re: Make CVS HEAD version build out of the box, Yongwei Wu, 2007/10/02
- Re: Make CVS HEAD version build out of the box, Earnie Boyd, 2007/10/03
- Re: Make CVS HEAD version build out of the box, Paul Smith, 2007/10/01
- Re: Make CVS HEAD version build out of the box,
Yongwei Wu <=
- Re: Make CVS HEAD version build out of the box, Eli Zaretskii, 2007/10/02
- Re: Make CVS HEAD version build out of the box, Earnie Boyd, 2007/10/02
- Re: Make CVS HEAD version build out of the box, Eli Zaretskii, 2007/10/02
- Re: Make CVS HEAD version build out of the box, Earnie Boyd, 2007/10/03
- Re: Make CVS HEAD version build out of the box, Yongwei Wu, 2007/10/02
- Re: Make CVS HEAD version build out of the box, Eli Zaretskii, 2007/10/03
- Re: Make CVS HEAD version build out of the box, Yongwei Wu, 2007/10/03
- Re: Make CVS HEAD version build out of the box, Eli Zaretskii, 2007/10/03
- Re: Make CVS HEAD version build out of the box, Yongwei Wu, 2007/10/09
- Re: Make CVS HEAD version build out of the box, Eli Zaretskii, 2007/10/09