summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-06-18 10:00:38 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-06-18 10:00:38 +0200
commit7ae63b1e06f607ede3ed32829ac9316e4c657247 (patch)
tree2d347681207e337dad6ad21ec15a319b6a734a62 /contrib
parent3eb535037ca7ef9ea026cc7799fa0e7d93438089 (diff)
downloadbugzilla-7ae63b1e06f607ede3ed32829ac9316e4c657247.tar.gz
bugzilla-7ae63b1e06f607ede3ed32829ac9316e4c657247.tar.xz
Bug 572949: Update YUI to 2.8.1
r=glob, a=mkanat
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/new-yui.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/new-yui.sh b/contrib/new-yui.sh
new file mode 100755
index 000000000..6f082e0f5
--- /dev/null
+++ b/contrib/new-yui.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+#
+# 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