From eb7cb4ecd5e0b6a8383d4c45d92b918316fc3cbf Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Mon, 25 Nov 2013 10:30:04 +0530 Subject: [PATCH] Add scripts to update js libraries from upstream Change-Id: Ie2c7727afc5bd7c7d0ab44b50070e6ea49ee6e96 --- scripts/update-jquery-i18n.sh | 10 ++++++++++ scripts/update-jquery-ime.sh | 13 +++++++++++++ scripts/update-jquery-uls.sh | 10 ++++++++++ scripts/update-jquery-webfonts.sh | 10 ++++++++++ 4 files changed, 43 insertions(+) create mode 100755 scripts/update-jquery-i18n.sh create mode 100755 scripts/update-jquery-ime.sh create mode 100755 scripts/update-jquery-uls.sh create mode 100755 scripts/update-jquery-webfonts.sh diff --git a/scripts/update-jquery-i18n.sh b/scripts/update-jquery-i18n.sh new file mode 100755 index 00000000..cc42903d --- /dev/null +++ b/scripts/update-jquery-i18n.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +DEST="../lib/jquery.i18n"; +CLONEDIR="/tmp/jquery.i18n"; +HERE=`pwd`; +UPSTREAM="https://github.com/wikimedia/jquery.i18n.git"; +echo -e "Getting latest jquery.i18n from $UPSTREAM\n"; +if cd $CLONEDIR; then git pull; else git clone $UPSTREAM $CLONEDIR; fi +cd $HERE; +cp -rf $CLONEDIR/src/* $DEST \ No newline at end of file diff --git a/scripts/update-jquery-ime.sh b/scripts/update-jquery-ime.sh new file mode 100755 index 00000000..2f289b11 --- /dev/null +++ b/scripts/update-jquery-ime.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +DEST="../lib/jquery.ime"; +CLONEDIR="/tmp/jquery.ime"; +HERE=`pwd`; +UPSTREAM="https://github.com/wikimedia/jquery.ime.git"; +echo -e "Getting latest jquery.ime from $UPSTREAM\n"; +if cd $CLONEDIR; then git pull; else git clone $UPSTREAM $CLONEDIR; fi +cd $CLONEDIR; +npm install; +grunt copy concat; +cd $HERE; +cp -rf $CLONEDIR/dist/jquery.ime/{images,css,rules,jquery.ime.js} $DEST; \ No newline at end of file diff --git a/scripts/update-jquery-uls.sh b/scripts/update-jquery-uls.sh new file mode 100755 index 00000000..02382c8c --- /dev/null +++ b/scripts/update-jquery-uls.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +DEST="../lib/jquery.uls"; +CLONEDIR="/tmp/jquery.uls"; +HERE=`pwd`; +UPSTREAM="https://github.com/wikimedia/jquery.uls.git"; +echo -e "Getting latest jquery.uls from $UPSTREAM\n"; +if cd $CLONEDIR; then git pull; else git clone $UPSTREAM $CLONEDIR; fi +cd $HERE; +cp -rf $CLONEDIR/{images,css,src,i18n} $DEST \ No newline at end of file diff --git a/scripts/update-jquery-webfonts.sh b/scripts/update-jquery-webfonts.sh new file mode 100755 index 00000000..33fc7125 --- /dev/null +++ b/scripts/update-jquery-webfonts.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +DEST="../lib/"; +CLONEDIR="/tmp/jquery.webfonts"; +HERE=`pwd`; +UPSTREAM="https://github.com/wikimedia/jquery.webfonts.git"; +echo -e "Getting latest jquery.webfonts from $UPSTREAM\n"; +if cd $CLONEDIR; then git pull; else git clone $UPSTREAM $CLONEDIR; fi +cd $HERE; +cp -rf $CLONEDIR/src/* $DEST \ No newline at end of file