Skip to content

Commit 95116a7

Browse files
committed
cleanup
1 parent f5ba550 commit 95116a7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎scripts/config/version_lib.bash‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,22 +365,29 @@ version_generate() {
365365
local a_name a_email a_github entry
366366
while IFS=$'\t' read -r a_name a_email a_github; do
367367
[[ -z "${a_name}" ]] && continue
368+
368369
authors_cpp+=" {\"$(_version_lib_cstr_escape "${a_name}")\", \"$(_version_lib_cstr_escape "${a_email}")\", \"$(_version_lib_cstr_escape "${a_github}")\"},"$'\n'
370+
369371
entry="${a_name} <${a_email}>"
370372
[[ -n "${a_github}" ]] && entry+=" (@${a_github})"
373+
371374
[[ -n "${authors_blob}" ]] && authors_blob+="; "
372375
authors_blob+="${entry}"
376+
373377
authors_count=$((authors_count + 1))
374378
done <<< "${authors_tsv}"
379+
375380
authors_cpp="${authors_cpp%$'\n'}"
376381
authors_blob="$(_version_lib_cstr_escape "${authors_blob}")"
377382

378383
local banner="ALKOS_BUILD_INFO name=${info[name]} version=${info[version_full]}"
379384
banner+=" arch=${info[arch]} build=${info[build_type]} official=${info[official]}"
380385
banner+=" commit=${info[git_hash]} dirty=${info[git_dirty]}"
386+
381387
if [[ -n "${info[build_date]}" ]]; then
382388
banner+=" date=${info[build_date]} time=${info[build_time]}"
383389
fi
390+
384391
banner="$(_version_lib_cstr_escape "${banner}")"
385392

386393
_version_render_header info "${authors_cpp}" "${authors_count}" "${banner}" "${authors_blob}" \

0 commit comments

Comments
 (0)