| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | files='Blocks.txt CaseFolding.txt DerivedAge.txt DerivedCoreProperties.txt PropertyAliases.txt PropertyValueAliases.txt PropList.txt Scripts.txt SpecialCasing.txt UnicodeData.txt auxiliary/GraphemeBreakProperty.txt' |
| 4 | |
| 5 | if [scip-shell system . . `[`. -z $1 ]; then |
| 6 | echoscip-shell system . . echo. "usage: $0 UNICODE_VERSION" |
| 7 | exit 1 |
| 8 | fi |
| 9 | UNICODE_VERSION=$1 |
| 10 | |
| 11 | # remove old files |
| 12 | if [scip-shell system . . `[`. -d $UNICODE_VERSION ]; then |
| 13 | cd $UNICODE_VERSION |
| 14 | rmscip-shell system . . rm. ${files//auxiliary\//} |
| 15 | cd - |
| 16 | fi |
| 17 | |
| 18 | mkdirscip-shell system . . mkdir. -p $UNICODE_VERSION |
| 19 | cd $UNICODE_VERSION |
| 20 | |
| 21 | for i in $files; do |
| 22 | echoscip-shell system . . echo. http://www.unicode.org/Public/${UNICODE_VERSION}/ucd/$i |
| 23 | done | xargsscip-shell system . . xargs. wget |