Skip to content

Commit

Permalink
misc: Fix create_build_info.sh for whitespace submodules
Browse files Browse the repository at this point in the history
Signed-off-by: Mimoja <git@mimoja.de>
  • Loading branch information
Mimoja committed Feb 5, 2022
1 parent e26e1bd commit c18f0c0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions create_build_info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,16 +189,15 @@ fi
# Add submodule information
#

IFS=$'\n'
for sm_path in $(git submodule -q foreach --recursive 'echo \"$sm_path\"') ; do

IFS=$'\n'; for sm in $(git submodule -q foreach --recursive 'echo \"$sm_path\"') ; do
echo "getting info on $sm-"
printf "#\\n" >> $BUILD_INFO
printf "%s/_version_string\\t%s\\n" \
"$sm_path" "$(cd "$sm_path" ; safe_git_describe)" >> $BUILD_INFO
"$sm" "$(cd "$sm" ; safe_git_describe)" >> $BUILD_INFO
printf "%s/_last_commit_hash\\t%s\\n" \
"$sm_path" "$(cd "$sm_path" ; last_commit_hash)" >> $BUILD_INFO
"$sm" "$(cd "$sm" ; last_commit_hash)" >> $BUILD_INFO
printf "%s/_last_commit_time\\t%s\\n" \
"$sm_path" "$(cd "$sm_path" ; last_commit_time)" >> $BUILD_INFO
"$sm" "$(cd "$sm" ; last_commit_time)" >> $BUILD_INFO

done

0 comments on commit c18f0c0

Please sign in to comment.