Skip to content

Commit

Permalink
Set GNULIB_TOOL_IMPL early on so it gets exported for resumes
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchcapper committed Dec 3, 2024
1 parent 912071f commit 6e3ac8a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 7 additions & 1 deletion helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ function usage(){
declare -A cmds=(
[export_config]="Export project config to file for DebugProjGen.csx"
[log_raw_build|log]="Normal full run except create a .bat file for the commands run for the build process"
[log_make|log_make_full]="Similar to raw build above but runs make's dry run and generates that log, _full"
[log_raw_build_full|log_full]="Same as above, but can pass an additional step arg after to start at a certain step"
[log_make|log_make_full]="Similar to raw build above but runs make's dry run and generates that log, _full like on log_raw can start at a certain step"
[our_patch]="Apply our patch for this repo"
[checkout]="Checkout the original repo"
[gnulib]="checkout gnulib and apply our patches to it"
Expand Down Expand Up @@ -492,6 +492,12 @@ function startcommon(){
if [[ -n "$BLD_CONFIG_CMAKE_STYLE" ]]; then
cmake_init;
fi
if [[ $BLD_CONFIG_GNU_LIBS_USE_GNULIB_TOOL_PY -eq 1 ]]; then
export GNULIB_TOOL_IMPL="py"
else
export GNULIB_TOOL_IMPL="sh"
fi

}
function exit_ok(){
trace_final
Expand Down
10 changes: 3 additions & 7 deletions helpers_gnu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ function gnulib_dump_patches(){

function gnulib_switch_to_master_and_patch(){
cd $BLD_CONFIG_SRC_FOLDER
if [[ $BLD_CONFIG_GNU_LIBS_USE_GNULIB_TOOL_PY -eq 1 ]]; then
#sed -i -E "s#(gnulib_tool=.+gnulib-tool)\$#\1.py#" bootstrap
export GNULIB_TOOL_IMPL="py"
else
#sed -i -E "s#(gnulib_tool=.+gnulib-tool).py\$#\1#" bootstrap
export GNULIB_TOOL_IMPL="sh"
fi

#sed -i -E "s#(gnulib_tool=.+gnulib-tool).py\$#\1#" bootstrap

cd $BLD_CONFIG_SRC_FOLDER/gnulib

#we do this process to make it easier to tell what changes we have actually made vs what changes were from our patches
Expand Down

0 comments on commit 6e3ac8a

Please sign in to comment.