Fixes for fetch-language-data.sh (#360)
* Fixes for fetch-language-data.sh
* Portable path function, instead of `readlink -f`, which doesn't
work on mac.
* Remove extra '/' character from DEST. It is added again later.
* Change "wrote" to "written" — clearer meaning of what was done.
* Update language-data
* Update sjd autonym
* Move ms-arab a few lines (automatic change from CLDR)
Updating to
b485f5a134
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,5 +6,6 @@
|
|||||||
/node_modules
|
/node_modules
|
||||||
/dist
|
/dist
|
||||||
data/supplementalData.xml
|
data/supplementalData.xml
|
||||||
|
/scripts/vendor
|
||||||
/vendor
|
/vendor
|
||||||
.eslintcache
|
.eslintcache
|
||||||
|
|||||||
@@ -2,8 +2,9 @@
|
|||||||
|
|
||||||
set -o errexit -o nounset -o pipefail
|
set -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
BASEDIR=$(dirname "$(dirname "$(readlink -f "$0")")")
|
scriptdir() { perl -MCwd -e 'print Cwd::abs_path shift;' "$1"; }
|
||||||
DEST="$BASEDIR/src/"
|
BASEDIR=$(dirname "$(dirname "$(scriptdir "$0")")")
|
||||||
|
DEST="$BASEDIR/src"
|
||||||
CLONEDIR="$BASEDIR/vendor/language-data"
|
CLONEDIR="$BASEDIR/vendor/language-data"
|
||||||
UPSTREAM="https://github.com/wikimedia/language-data.git"
|
UPSTREAM="https://github.com/wikimedia/language-data.git"
|
||||||
|
|
||||||
@@ -30,4 +31,4 @@ echo "Transforming language-data"
|
|||||||
|
|
||||||
"$BASEDIR"/node_modules/browserify/bin/cmd.js "$CLONEDIR"/data/language-data.json -t "$BASEDIR"/scripts/transform.js -o "$DEST"/jquery.uls.data.js
|
"$BASEDIR"/node_modules/browserify/bin/cmd.js "$CLONEDIR"/data/language-data.json -t "$BASEDIR"/scripts/transform.js -o "$DEST"/jquery.uls.data.js
|
||||||
|
|
||||||
echo "language-data wrote to $DEST/jquery.uls.data.js"
|
echo "language-data written to $DEST/jquery.uls.data.js"
|
||||||
|
|||||||
Reference in New Issue
Block a user