diff options
| author | ARC <arjunrc@gmail.com> | 2015-05-04 04:32:51 -0400 |
|---|---|---|
| committer | ARC <arjunrc@gmail.com> | 2015-05-04 04:32:51 -0400 |
| commit | bfe426a83bfcd32bac22bc06cccb15f15a9f9450 (patch) | |
| tree | 996b8848922770b8127ad1abfa7f99dac566d895 /www/lib/moment/scripts | |
| parent | a838bdff9750af4ed6be0bad981ceb65341609f1 (diff) | |
Events Graphs now supports time based filters (using the excellent moment library)
Diffstat (limited to 'www/lib/moment/scripts')
| -rwxr-xr-x | www/lib/moment/scripts/npm_prepublish.sh | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/www/lib/moment/scripts/npm_prepublish.sh b/www/lib/moment/scripts/npm_prepublish.sh new file mode 100755 index 00000000..a4889a55 --- /dev/null +++ b/www/lib/moment/scripts/npm_prepublish.sh @@ -0,0 +1,43 @@ +#!/bin/bash + +set -e + +if [ "$#" != 1 ]; then + echo "Please provide tag to checkout" >&2 + exit 1 +fi +tag="$1" + +while [ "$PWD" != '/' -a ! -f moment.js ]; do + cd .. +done + +if [ ! -f moment.js ]; then + echo "Run me from the moment repo" >&2 + exit 1 +fi + +basename=$(basename $PWD) +src=moment-npm-git +dest=moment-npm + +cd .. + +rm -rf $src $dest + +git clone $basename $src +mkdir $dest + + +cp $src/moment.js $dest +cp $src/package.json $dest +cp $src/README.md $dest +cp $src/LICENSE $dest +cp -r $src/locale $dest +cp -r $src/min $dest +cp $src/ender.js $dest +cp $src/package.js $dest + +rm -rf $src + +echo "Check out $dest" |
