Files
mediawiki-extensions-Univer…/scripts/update-jquery-uls.sh

24 lines
449 B
Bash
Executable File

#!/bin/bash
BASEDIR=$(dirname "$0")
BASEDIR="$BASEDIR/.."
DEST="$BASEDIR/lib/jquery.uls"
CLONEDIR="$HOME/src/jquery.uls"
UPSTREAM="https://git.nordgren.vip/bryce/jquery.uls.git"
echo "Getting latest jquery.uls from $UPSTREAM"
if [ -d "$CLONEDIR" ]; then
pushd "$CLONEDIR"
git pull
popd
else
git clone "$UPSTREAM" "$CLONEDIR"
git checkout shavian
fi
rm -rf "$DEST"/*
cp -R "$CLONEDIR"/{images,css,src,i18n,*LICENSE,CREDITS} "$DEST"