Skip to content

Commit

Permalink
quick script for checking out clean repos and committing updated builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed May 8, 2014
1 parent f3ad180 commit 1717ce5
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
bin/node_modules
bin/builds-temp
40 changes: 40 additions & 0 deletions bin/update-builds.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/bash -e

dir=`pwd -P`
TMP="$dir/builds-temp"
mkdir -p $TMP
pushd $TMP

pushd components/platform
git reset --hard origin/master
popd

pushd components/polymer
git reset --hard origin/master
popd

node $dir/node_modules/bigstraw/index.js -s $dir/../repo-configs/polymer.json

pushd components/platform-dev
npm install
grunt minify audit
cp build/build.log build/platform.js build/platform.js.map ../platform/
popd

pushd components/platform
git commit . -m 'update build'
git push origin master
popd

pushd components/polymer-dev
npm install
grunt minify audit
cp build/build.log build/polymer.js build/polymer.js.map ../polymer/
popd

pushd components/polymer
git commit . -m 'update build'
git push origin master
popd

popd

0 comments on commit 1717ce5

Please sign in to comment.