diff options
author | stephan <stephan@noemail.net> | 2025-02-15 16:24:05 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2025-02-15 16:24:05 +0000 |
commit | 4a1c44eea7d9f3d444f9aa2b743edce2c3c42ad0 (patch) | |
tree | 7836efca60115038cdc8324dfd440a8080c2088f /tool | |
parent | 984f699ccb04322a5edee5f9ebda7131e2493558 (diff) | |
download | sqlite-4a1c44eea7d9f3d444f9aa2b743edce2c3c42ad0.tar.gz sqlite-4a1c44eea7d9f3d444f9aa2b743edce2c3c42ad0.zip |
Automate update of the library version number in autoconf/tea/configure.ac as part of the tool/mkautoconfamal.sh process, per /chat discussion.
FossilOrigin-Name: be265559a334eda127862ae54edb58c46051f74445642daa84a9f61a81df1bac
Diffstat (limited to 'tool')
-rw-r--r-- | tool/mkautoconfamal.sh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tool/mkautoconfamal.sh b/tool/mkautoconfamal.sh index c26ca47bf..c26ac8c73 100644 --- a/tool/mkautoconfamal.sh +++ b/tool/mkautoconfamal.sh @@ -25,10 +25,14 @@ VERSION=`cat $TOP/VERSION` HASH=`cut -c1-10 $TOP/manifest.uuid` DATETIME=`grep '^D' $TOP/manifest | tr -c -d '[0-9]' | cut -c1-12` -# Verify that the version number in the TEA autoconf file is correct. -# Fail with an error if not. +# Inject the current version into the TEA autoconf file. # -if grep $VERSION $TOP/autoconf/tea/configure.ac +sed -e "s/@VERSION@/$VERSION/" \ + < $TOP/autoconf/tea/configure.ac.in \ + > $TOP/autoconf/tea/configure.ac +# And then verify that that worked... +# +if grep $VERSION $TOP/autoconf/tea/configure.ac > /dev/null then echo "TEA version number ok" else echo "TEA version number mismatch. Should be $VERSION"; exit 1 fi @@ -91,10 +95,8 @@ cat <<EOF > tea/generic/tclsqlite3.c EOF cat $TOP/src/tclsqlite.c >> tea/generic/tclsqlite3.c -sed "s/AC_INIT(\[sqlite\], .*)/AC_INIT([sqlite], [$VERSION])/" tea/configure.ac > tmp -mv tmp tea/configure.ac - cd tea +rm -f configure.ac.in autoconf rm -rf autom4te.cache |