diff --git a/tools/license-builder.sh b/tools/license-builder.sh index 3d587227b41ae4..eb3980e7d027cd 100755 --- a/tools/license-builder.sh +++ b/tools/license-builder.sh @@ -22,7 +22,7 @@ $(echo -e "$3" | sed -e 's/^/ /' -e 's/^ $//' -e 's/ *$//' | sed -e '/./,$ } -if ! [ -d "${rootdir}/deps/icu/" ]; then +if ! [ -d "${rootdir}/deps/icu/" ] && ! [ -d "${rootdir}/deps/icu-small/" ]; then echo "ICU not installed, run configure to download it, e.g. ./configure --with-intl=small-icu --download=icu" exit 1 fi @@ -42,6 +42,16 @@ elif [ -f "${rootdir}/deps/icu/license.html" ]; then addlicense "ICU" "deps/icu" \ "$(sed -e '1,/ICU License - ICU 1\.8\.1 and later/d' -e :a \ -e 's/<[^>]*>//g;s/ / /g;s/ +$//;/]*>//g;s/ / /g;s/ +$//;/]*>//g;s/ / /g;s/ +$//;/