From e118dd88fdcbf42e8d91de31c308bc3f74433c92 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Tue, 1 Nov 2022 07:36:44 -0500 Subject: [PATCH] tools: refactor dynamic strings creation in shell scripts PR-URL: https://github.com/nodejs/node/pull/45240 Reviewed-By: Luigi Pinca Reviewed-By: Yagiz Nizipli Reviewed-By: Darshan Sen Reviewed-By: Minwoo Jung --- 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..d9d10f6b68ff45 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/ +$//;/