2017-03-07 23:43:56 +03:00
|
|
|
#!/bin/sh
|
2016-12-13 20:20:38 +03:00
|
|
|
|
2017-03-07 23:43:56 +03:00
|
|
|
if [ -n "$FXA_L10N_SKIP" ]; then
|
|
|
|
echo "Skipping fxa-content-server-l10n update..."
|
|
|
|
exit 0
|
|
|
|
fi
|
2016-12-13 20:20:38 +03:00
|
|
|
|
|
|
|
if [ -z "$FXA_L10N_SHA" ]; then
|
|
|
|
FXA_L10N_SHA="master"
|
|
|
|
fi
|
|
|
|
|
2017-09-06 16:33:19 +03:00
|
|
|
DOWNLOAD_PATH="https://github.com/mozilla/fxa-content-server-l10n.git"
|
2016-12-13 20:20:38 +03:00
|
|
|
|
2017-09-06 16:33:19 +03:00
|
|
|
# Download L10N using git
|
2018-07-26 17:48:40 +03:00
|
|
|
if [ ! -d "fxa-content-server-l10n" ]; then
|
|
|
|
echo "Downloading L10N files from $DOWNLOAD_PATH..."
|
|
|
|
git clone --depth=20 $DOWNLOAD_PATH
|
|
|
|
fi
|
2017-09-06 16:33:19 +03:00
|
|
|
cd fxa-content-server-l10n
|
2018-07-26 17:48:40 +03:00
|
|
|
echo "Updating L100N files"
|
|
|
|
git checkout -- .
|
2017-09-06 16:33:19 +03:00
|
|
|
git checkout $FXA_L10N_SHA
|
2018-07-26 17:48:40 +03:00
|
|
|
git pull
|
2017-09-06 16:33:19 +03:00
|
|
|
cd ..
|