summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d5c31a1)
raw | patch | inline | side by side (parent: d5c31a1)
author | Jakub Narebski <jnareb@gmail.com> | |
Tue, 8 Aug 2006 16:35:23 +0000 (18:35 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 8 Aug 2006 20:32:04 +0000 (13:32 -0700) |
While at it fill git version information in configure.ac
configure target needs autoconf, of course.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
configure target needs autoconf, of course.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
INSTALL | patch | blob | history | |
Makefile | patch | blob | history | |
configure.ac | patch | blob | history |
index ba9778cd4de187878b6445be5fbf490d76879f30..fa9bf74a208697bd4c6cd5c91f3335b2f5475a49 100644 (file)
--- a/INSTALL
+++ b/INSTALL
Alternatively you can use autoconf generated ./configure script to
set up install paths (via config.mak.autogen), so you can write instead
- $ autoconf ;# as yourself if ./configure doesn't exist yet
+ $ make configure ;# as yourself
$ ./configure --prefix=/usr ;# as yourself
$ make all doc ;# as yourself
# make install install-doc ;# as root
diff --git a/Makefile b/Makefile
index ae4c0f2d905c6b934459d472a17183f2740c1a2c..d8cc83507d4339181bc42a7593f516a11e53319c 100644 (file)
--- a/Makefile
+++ b/Makefile
chmod +x $@+
mv $@+ $@
+configure: configure.ac
+ rm -f $@ $<+
+ sed -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
+ $< > $<+
+ autoconf -o $@ $<+
+ rm -f $<+
+
# These can record GIT_VERSION
git$X git.spec \
$(patsubst %.sh,%,$(SCRIPT_SH)) \
diff --git a/configure.ac b/configure.ac
index 3c56cc51ac4bef254c5c62a0184ed6bc30f0b66d..e2da89114e31507c9784141f1ab4255cb3cb76b9 100644 (file)
--- a/configure.ac
+++ b/configure.ac
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
-AC_INIT([git], [1.4.1], [git@vger.kernel.org])
+AC_INIT([git], [@@GIT_VERSION@@], [git@vger.kernel.org])
AC_CONFIG_SRCDIR([git.c])