Files
mediawiki-extensions-Univer…/scripts/update-jquery-webfonts.sh
Reedy 8b4e263ed7 Fix webfonts typo
Change-Id: I3cc3264f347454a0c15981653163226c13a2a007
2020-03-07 00:07:22 +00:00

23 lines
436 B
Bash
Executable File

#!/bin/bash
BASEDIR=$(dirname "$0")
BASEDIR="$BASEDIR/.."
DEST="$BASEDIR/lib/jquery.webfonts"
CLONEDIR="$BASEDIR/vendor/jquery.wefonts"
UPSTREAM="https://github.com/wikimedia/jquery.webfonts.git"
echo "Getting latest jquery.webfonts from $UPSTREAM"
if [ -d "$CLONEDIR" ]; then
pushd "$CLONEDIR"
git pull
popd
else
git clone "$UPSTREAM" "$CLONEDIR"
fi
rm -rf "$DEST/jquery.webfonts.js"
cp -R "$CLONEDIR"/{src,*LICENSE} "$DEST"