blob: 2ea9531a43183bf7b99461359c8901ffad62840e [file] [log] [blame]
#!/bin/sh
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
# Updates the version of YUI used by Bugzilla. Just pass the path to
# an unzipped yui release directory, like:
#
# contrib/new-yui.sh /path/to/yui-2.8.1/
#
rsync -av --delete $1/build/ js/yui/
cd js/yui
rm -rf editor/ yuiloader-dom-event/
find -name '*.js' -not -name '*-min.js' -not -name '*-dom-event.js' \
-exec rm -f {} \;
find -name '*-skin.css' -exec rm -f {} \;
find -depth -path '*/assets' -not -path './assets' -exec rm -rf {} \;
rm assets/skins/sam/sprite.psd
rm assets/skins/sam/skin.css
rmdir utilities