Import the changes in
674b2458a25 in the VisualEditor repository where these scripts
were first created (and are still run for non-MediaWiki users).
Commit message in that repo justifies.
Change-Id: I711f3c88cbc1916f3b782771095304b186f7405f
# Undo any changes in the oojs-ui directory
git reset resources/oojs-ui/
git checkout resources/oojs-ui/
+
+git fetch origin
+# Create a branch of MW if needed, and reset it to master
+git checkout -B update-oojsui origin/master
+
# Get the old oojs-ui version
OLDVERSION=$(oojsuihash)
if [ "x$OLDVERSION" == "x" ]
exit 0
fi
# Build the distribution
-grunt
+npm install || exit 1
+grunt || exit 1
# Get the list of changes
NEWCHANGES=$(git log $OLDVERSION.. --oneline --no-merges --reverse --color=never)
NEWCHANGESDISPLAY=$(git log $OLDVERSION.. --oneline --no-merges --reverse --color=always)
# Undo any changes in the oojs directory
git reset resources/oojs/
git checkout resources/oojs/
+
+git fetch origin
+# Create a branch of MW if needed, and reset it to master
+git checkout -B update-oojs origin/master
+
# Get the old oojs version
OLDVERSION=$(oojshash)
if [ "x$OLDVERSION" == "x" ]
exit 0
fi
# Build the distribution
-grunt
+npm install || exit 1
+grunt || exit 1
# Get the list of changes
NEWCHANGES=$(git log $OLDVERSION.. --oneline --no-merges --reverse --color=never)
NEWCHANGESDISPLAY=$(git log $OLDVERSION.. --oneline --no-merges --reverse --color=always)