From b585516eb8fb55f75e356965b4ea09237bbb30fd Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sun, 30 Oct 2022 03:07:32 +0100 Subject: [PATCH] tools: refactor dynamic strings creation in shell scripts --- tools/license-builder.sh | 60 ++++++++++++++++++++-------------------- tools/update-cares.sh | 4 +-- tools/update-llhttp.sh | 4 +-- tools/update-nghttp2.sh | 4 +-- tools/update-npm.sh | 6 ++-- 5 files changed, 39 insertions(+), 39 deletions(-) diff --git a/tools/license-builder.sh b/tools/license-builder.sh index b50732e0c14e57..c342a9672bcec8 100755 --- a/tools/license-builder.sh +++ b/tools/license-builder.sh @@ -30,91 +30,91 @@ fi # Dependencies bundled in distributions -licenseText="$(cat "${rootdir}"/deps/acorn/acorn/LICENSE)" +licenseText="$(cat "${rootdir}/deps/acorn/acorn/LICENSE")" addlicense "Acorn" "deps/acorn" "$licenseText" -licenseText="$(tail -n +3 "${rootdir}"/deps/cares/LICENSE.md)" +licenseText="$(tail -n +3 "${rootdir}/deps/cares/LICENSE.md")" addlicense "c-ares" "deps/cares" "$licenseText" -licenseText="$(cat "${rootdir}"/deps/cjs-module-lexer/LICENSE)" +licenseText="$(cat "${rootdir}/deps/cjs-module-lexer/LICENSE")" addlicense "cjs-module-lexer" "deps/cjs-module-lexer" "$licenseText" if [ -f "${rootdir}/deps/icu/LICENSE" ]; then # ICU 57 and following. Drop the BOM - licenseText="$(sed -e '1s/^[^a-zA-Z ]*ICU/ICU/' -e :a -e 's/<[^>]*>//g;s/ / /g;s/ +$//;/