Skip to content

Instantly share code, notes, and snippets.

@topherfangio
Created March 1, 2012 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save topherfangio/1953170 to your computer and use it in GitHub Desktop.
Save topherfangio/1953170 to your computer and use it in GitHub Desktop.
Updates SproutCore apps based off of a tar of the static directory.
# /bin/bash
release_path="https://some.great.url/sproutcore/static.tar"
echo "Removing old sproutcore files from git..."
rm -rf static
echo "Downloading static.tar from '$release_path' ..."
wget $release_path
echo "Unarchiving static..."
tar -xf static.tar
echo "Removing static.tar file..."
rm static.tar
echo "Migrating sproutcore files into php files..."
cp static/pharos360/en/**/index.html beta.php
cp static/mobile360/en/**/index.html mobile.php
cp static/ts_lists/en/**/index.html sc_ts_lists.php
cp static/campaigns360/en/**/index.html sc_campaigns360.php
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment