Created
March 1, 2012 20:54
-
-
Save topherfangio/1953170 to your computer and use it in GitHub Desktop.
Updates SproutCore apps based off of a tar of the static directory.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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