mirror of
https://github.com/moparisthebest/curl
synced 2024-11-10 11:35:07 -05:00
the configure script dynamically gets the version from the include file now
which lets the maketgz skip updating the configure.in file
This commit is contained in:
parent
c44b10de41
commit
8f5ffd94a2
@ -2,7 +2,9 @@ dnl $Id$
|
|||||||
dnl Process this file with autoconf to produce a configure script.
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
AC_INIT(lib/urldata.h)
|
AC_INIT(lib/urldata.h)
|
||||||
AM_CONFIG_HEADER(config.h src/config.h)
|
AM_CONFIG_HEADER(config.h src/config.h)
|
||||||
AM_INIT_AUTOMAKE(curl,"7.4.1")
|
|
||||||
|
VERSION=`sed -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' include/curl/curl.h`
|
||||||
|
AM_INIT_AUTOMAKE(curl,$VERSION)
|
||||||
AM_PROG_LIBTOOL
|
AM_PROG_LIBTOOL
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
|
38
maketgz
38
maketgz
@ -62,25 +62,25 @@ findprog()
|
|||||||
# brand new version number:
|
# brand new version number:
|
||||||
#
|
#
|
||||||
|
|
||||||
if { findprog autoconf >/dev/null 2>/dev/null; } then
|
#if { findprog autoconf >/dev/null 2>/dev/null; } then
|
||||||
echo "- No autoconf found, we leave configure as it is"
|
# echo "- No autoconf found, we leave configure as it is"
|
||||||
else
|
#else
|
||||||
# Replace version number in configure.in file:
|
# # Replace version number in configure.in file:
|
||||||
|
#
|
||||||
CONF="configure.in"
|
# CONF="configure.in"
|
||||||
|
#
|
||||||
sed 's/^AM_INIT_AUTOMAKE.*/AM_INIT_AUTOMAKE(curl,"'$version'")/g' $CONF >$CONF.new
|
# sed 's/^AM_INIT_AUTOMAKE.*/AM_INIT_AUTOMAKE(curl,"'$version'")/g' $CONF >$CONF.new
|
||||||
|
#
|
||||||
# Save old file
|
# # Save old file
|
||||||
cp -p $CONF $CONF.old
|
# cp -p $CONF $CONF.old
|
||||||
|
#
|
||||||
# Make new configure.in
|
# # Make new configure.in
|
||||||
mv $CONF.new $CONF
|
# mv $CONF.new $CONF
|
||||||
|
#
|
||||||
# Update the configure script
|
# # Update the configure script
|
||||||
echo "Runs autoconf"
|
# echo "Runs autoconf"
|
||||||
autoconf
|
# autoconf
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user