aboutsummaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2025-04-12 02:30:04 +0000
committerstephan <stephan@noemail.net>2025-04-12 02:30:04 +0000
commit19b070108749bb548e03c0b3aef850bd51486cb1 (patch)
tree05848dbade28b36a6acab04888243c1f64355df7 /tool
parent0aa95099f5003dc99f599ab77ac0004950b281ef (diff)
downloadsqlite-19b070108749bb548e03c0b3aef850bd51486cb1.tar.gz
sqlite-19b070108749bb548e03c0b3aef850bd51486cb1.zip
Initial port of the TEA build (autoconf/tea) from autotools to autosetup.
FossilOrigin-Name: 95227341cf290ca6f20b5ff7e707a28b59f87784947425c3fd1d8e5e7eb878a4
Diffstat (limited to 'tool')
-rw-r--r--tool/mkautoconfamal.sh24
1 files changed, 4 insertions, 20 deletions
diff --git a/tool/mkautoconfamal.sh b/tool/mkautoconfamal.sh
index 9ccf8b655..8d104c020 100644
--- a/tool/mkautoconfamal.sh
+++ b/tool/mkautoconfamal.sh
@@ -25,20 +25,6 @@ VERSION=`cat $TOP/VERSION`
HASH=`cut -c1-10 $TOP/manifest.uuid`
DATETIME=`grep '^D' $TOP/manifest | tr -c -d '[0-9]' | cut -c1-12`
-# Inject the current version into the TEA autoconf file.
-#
-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
-
-
-
# If this script is given an argument of --snapshot, then generate a
# snapshot tarball named for the current checkout SHA hash, rather than
# the version number.
@@ -88,6 +74,9 @@ rm -f ./*~
#fi
mkdir -p tea/generic
+mv tea/autosetup/*.tcl autosetup/.
+rm -fr tea/autosetup
+
cat <<EOF > tea/generic/tclsqlite3.c
#ifdef USE_SYSTEM_SQLITE
# include <sqlite3.h>
@@ -97,12 +86,7 @@ cat <<EOF > tea/generic/tclsqlite3.c
EOF
cat $TOP/src/tclsqlite.c >> tea/generic/tclsqlite3.c
-cd tea
-rm -f configure.ac.in
-autoconf
-rm -rf autom4te.cache
-
-cd ../
+find . -type f -name '*~' -exec rm -f \{} \;
./configure && make dist
tar xzf sqlite-$VERSION.tar.gz
mv sqlite-$VERSION $TARBALLNAME