Files
mediawiki-extensions-Univer…/scripts/update-jquery-webfonts.sh
Santhosh Thottingal 9327417702 Add license files for upstream jquery-* libs
Updated the update scripts too

Change-Id: Ia5f509cdc3ab91cd30c81d91da999993d13c68d1
2016-06-03 17:35:19 +05:30

23 lines
435 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.wefonts 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"