summaryrefslogtreecommitdiff
path: root/tools/license-builder.sh
diff options
context:
space:
mode:
authorRichard Lau <riclau@uk.ibm.com>2016-01-19 10:41:23 -0500
committerEvan Lucas <evanlucas@me.com>2016-01-20 16:06:09 -0600
commitfe23f4241f32eed474f45b48b6dc170e7ee446b8 (patch)
tree3b9b48ad11864cecdc9d4ccf7181ed002acb3e56 /tools/license-builder.sh
parent8a11b8c0efb7f414ed3b50399b33771b8fe9a0a5 (diff)
downloadnodejs-fe23f4241f32eed474f45b48b6dc170e7ee446b8.tar.gz
nodejs-fe23f4241f32eed474f45b48b6dc170e7ee446b8.tar.bz2
nodejs-fe23f4241f32eed474f45b48b6dc170e7ee446b8.zip
tools: fix license-builder.sh for ICU
Modify tools/license-builder.sh to restore the Third-Party Software licenses for ICU. Also fix arguments to tail to work on Linux. rvagg: modified sed command for ICU to replace tabs with spaces and remove whitespace at the end of lines PR-URL: https://github.com/nodejs/node/pull/4762 Reviewed-By: Rod Vagg <rod@vagg.org>
Diffstat (limited to 'tools/license-builder.sh')
-rwxr-xr-xtools/license-builder.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/license-builder.sh b/tools/license-builder.sh
index bb350e5a8..5d6b810e1 100755
--- a/tools/license-builder.sh
+++ b/tools/license-builder.sh
@@ -33,7 +33,8 @@ addlicense "c-ares" "deps/cares" \
"$(sed -e '/^ \*\/$/,$d' -e '/^$/d' -e 's/^[/ ]\* *//' ${rootdir}/deps/cares/src/ares_init.c)"
addlicense "HTTP Parser" "deps/http_parser" "$(cat deps/http_parser/LICENSE-MIT)"
addlicense "ICU" "deps/icu" \
- "$(sed -e '1,/COPYRIGHT AND PERMISSION NOTICE/d' -e '/^<hr/,$d' -e 's/^<\/*p>$//' ${rootdir}/deps/icu/license.html)"
+ "$(sed -e '1,/ICU License - ICU 1\.8\.1 and later/d' -e :a \
+ -e 's/<[^>]*>//g;s/ / /g;s/ +$//;/</N;//ba' ${rootdir}/deps/icu/license.html)"
addlicense "libuv" "deps/uv" "$(cat ${rootdir}/deps/uv/LICENSE)"
addlicense "OpenSSL" "deps/openssl" \
"$(sed -e '/^ \*\/$/,$d' -e '/^ [^*].*$/d' -e '/\/\*.*$/d' -e '/^$/d' -e 's/^[/ ]\* *//' ${rootdir}/deps/openssl/openssl/LICENSE)"
@@ -53,7 +54,7 @@ addlicense "marked" "tools/doc/node_modules/marked" \
# Testing tools
addlicense "cpplint.py" "tools/cpplint.py" \
- "$(sed -e '/^$/,$d' -e 's/^#$//' -e 's/^# //' ${rootdir}/tools/cpplint.py | tail +3)"
+ "$(sed -e '/^$/,$d' -e 's/^#$//' -e 's/^# //' ${rootdir}/tools/cpplint.py | tail -n +3)"
addlicense "ESLint" "tools/eslint" "$(cat ${rootdir}/tools/eslint/LICENSE)"
addlicense "gtest" "deps/gtest" "$(cat ${rootdir}/deps/gtest/LICENSE)"
addlicense "node-weak" "test/gc/node_modules/weak" \