forked from Polymer/old-docs-site
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.sh
More file actions
executable file
·39 lines (32 loc) · 1.18 KB
/
release.sh
File metadata and controls
executable file
·39 lines (32 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
#
# Preps a release. Updates submodules, components, polyfills, and projects.
#
# Note: run from the root of the docs folder.
#
# Copyright 2014 Eric Bidelman <@ebidel>
# SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PROJECTS_DIR=./polymer-all/projects
DESIGNER_DIR=$PROJECTS_DIR/designer
#COMPONENTS_DIR=../../components
COMPONENTS_DIR=../../../
# Update submodules =====
echo "=== Updating: submodules ==="
git submodule foreach git pull origin master
# Update projects folder =====
#cd $PROJECTS_DIR
#echo "=== Updating projects ==="
#../tools/bin/pull-all-projects.sh
# Update components and polyfills folder =====
#cd $COMPONENTS_DIR
echo "=== Updating: components, polymer, polyfills, projects, and labs ==="
# TODO(nevir): pull-all doesn't actually pull *everything* any more; the extra
# args are a hack until we ween the docs off of polymer-* components
./polymer-all/tools/bin/pull-all.sh ./polymer-all/tools/repo-configs/labs.json
rm -rf polymer-all/projects/
mv projects/ polymer-all/
# Update designer =====
cd $DESIGNER_DIR
echo "=== Updating designer ==="
rm -rf components # If bower components dir exists, script hangs. Remove it first.
bower install