| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4a7e333 commit 7182f5f
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,7 +22,7 @@ $(echo -e "$3" | sed -e 's/^/ /' -e 's/^ $//' -e 's/ *$//' | sed -e '/./,$ | |||
| 22 | 22 | } | |
| 23 | 23 | ||
| 24 | 24 | ||
| 25 | - if ! [ -d "${rootdir}/deps/icu/" ]; then | ||
| 25 | + if ! [ -d "${rootdir}/deps/icu/" ] && ! [ -d "${rootdir}/deps/icu-small/" ]; then | ||
| 26 | 26 | echo "ICU not installed, run configure to download it, e.g. ./configure --with-intl=small-icu --download=icu" | |
| 27 | 27 | exit 1 | |
| 28 | 28 | fi | |
@@ -42,6 +42,16 @@ elif [ -f "${rootdir}/deps/icu/license.html" ]; then | |||
| 42 | 42 | addlicense "ICU" "deps/icu" \ | |
| 43 | 43 | "$(sed -e '1,/ICU License - ICU 1\.8\.1 and later/d' -e :a \ | |
| 44 | 44 | -e 's/<[^>]*>//g;s/ / /g;s/ +$//;/</N;//ba' ${rootdir}/deps/icu/license.html)" | |
| 45 | + elif [ -f "${rootdir}/deps/icu-small/LICENSE" ]; then | ||
| 46 | + # ICU 57 and following. Drop the BOM | ||
| 47 | + addlicense "ICU" "deps/icu-small" \ | ||
| 48 | + "$(sed -e '1s/^[^a-zA-Z ]*ICU/ICU/' -e :a \ | ||
| 49 | + -e 's/<[^>]*>//g;s/ / /g;s/ +$//;/</N;//ba' ${rootdir}/deps/icu-small/LICENSE)" | ||
| 50 | + elif [ -f "${rootdir}/deps/icu-small/license.html" ]; then | ||
| 51 | + # ICU 56 and prior | ||
| 52 | + addlicense "ICU" "deps/icu-small" \ | ||
| 53 | + "$(sed -e '1,/ICU License - ICU 1\.8\.1 and later/d' -e :a \ | ||
| 54 | + -e 's/<[^>]*>//g;s/ / /g;s/ +$//;/</N;//ba' ${rootdir}/deps/icu-small/license.html)" | ||
| 45 | 55 | else | |
| 46 | 56 | echo "Could not find an ICU license file." | |
| 47 | 57 | exit 1 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments