diff options
author | Steve Bennett <steveb@workware.net.au> | 2022-08-20 08:24:22 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2022-08-20 15:35:49 +1000 |
commit | d6edb1347713f002a8f1e61c585583b3b1c37394 (patch) | |
tree | 717ae3875f7e451b97517f3a2cdff66d44de77c6 /autosetup/tmake.auto | |
parent | 6e1d4cc163dc37f0ea5cdae8b3e2b9e4b0a73254 (diff) | |
download | jimtcl-d6edb1347713f002a8f1e61c585583b3b1c37394.zip jimtcl-d6edb1347713f002a8f1e61c585583b3b1c37394.tar.gz jimtcl-d6edb1347713f002a8f1e61c585583b3b1c37394.tar.bz2 |
build: Update to autosetup v0.7.1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'autosetup/tmake.auto')
-rw-r--r-- | autosetup/tmake.auto | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/autosetup/tmake.auto b/autosetup/tmake.auto index 64a5712..448d317 100644 --- a/autosetup/tmake.auto +++ b/autosetup/tmake.auto @@ -49,6 +49,24 @@ ifconfig !CONFIGURED { } } + set configure [readfile configure] + # XXX Do we need also need to support a system install of tmake? + if {[string first {#@TMAKEUPDATED@} $configure] < 0} { + if {[regsub {#@@INITCHECK@@#} $configure \ + {test -z "$TMAKE" -a -x "$dir/tmake" \&\& exec "$dir/tmake" --force --configure "$@"; #@TMAKEUPDATED@} configure]} { + writefile configure $configure\n + exec chmod +x configure + puts "Updated configure to invoke local tmake." + if {![file exec autosetup/tmake]} { + puts "Warning: autosetup/tmake is missing." + puts " Install it with: tmake --install=autosetup" + } + } else { + puts "Warning: configure isn't created by a recent autosetup, not updating." + } + } else { + puts "I see configure for tmake already exists." + } if {![file exists build.spec]} { puts "Note: I don't see build.spec. Try running: tmake --genie" } |