Add autom4te wrapper to keep submodules clean
Disable autom4te cache creation during autoconf runs by setting AUTOM4TE to a wrapper that passes --no-cache. This prevents autom4te.cache directories from appearing in submodules (pcre, etc.) and making them show as dirty. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
dafef9c0a1
commit
23a23fd7a6
2 changed files with 10 additions and 0 deletions
|
|
@ -36,6 +36,9 @@ WX_SOURCE="$PROJECT_ROOT/wxwidgets"
|
|||
export SHELL="$SCRIPT_DIR/config/config-sub-wrapper.sh"
|
||||
export CONFIG_SHELL="$SCRIPT_DIR/config/config-sub-wrapper.sh"
|
||||
|
||||
# Disable autom4te cache to keep submodules clean
|
||||
export AUTOM4TE="$SCRIPT_DIR/config/autom4te-wrapper.sh"
|
||||
|
||||
# Use JOBS from env.sh if set, otherwise use all available cores
|
||||
JOBS="${JOBS:-$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 4)}"
|
||||
|
||||
|
|
|
|||
7
scripts/config/autom4te-wrapper.sh
Executable file
7
scripts/config/autom4te-wrapper.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
# autom4te wrapper - disables cache to keep submodules clean
|
||||
# This prevents autom4te.cache directories from being created in source trees
|
||||
#
|
||||
# Unset AUTOM4TE to prevent infinite recursion when autoconf calls autom4te
|
||||
unset AUTOM4TE
|
||||
exec autom4te --no-cache "$@"
|
||||
Loading…
Reference in a new issue