Files
mediawiki-extensions-Univer…/scripts/update-jquery-ime.sh
Niklas Laxström 1a378e3cca Update upstream update scripts
* Allow to run any directory
* Leaving stuff on /tmp was not nice
* Git pull was run on wrong directory

Change-Id: Ia7f82de55c9bd446c29afc0684660ed00b6585bf
2016-05-04 14:01:08 +02:00

28 lines
508 B
Bash
Executable File

#!/bin/bash
BASEDIR=$(dirname "$0")
BASEDIR="$BASEDIR/.."
DEST="$BASEDIR/lib/jquery.ime"
CLONEDIR="$BASEDIR/vendor/jquery.ime"
UPSTREAM="https://github.com/wikimedia/jquery.ime.git"
echo "Getting latest jquery.ime from $UPSTREAM"
if [ -d "$CLONEDIR" ]; then
pushd "$CLONEDIR"
git pull
popd
else
git clone "$UPSTREAM" "$CLONEDIR"
fi
pushd "$CLONEDIR"
npm install
./node_modules/.bin/grunt copy concat
popd
rm -rf "$DEST"/*
cp -R "$CLONEDIR"/dist/jquery.ime/{images,css,rules,jquery.ime.js} "$DEST"