Created
October 23, 2013 15:06
-
-
Save lucaswerkmeister/7120517 to your computer and use it in GitHub Desktop.
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/sh | |
# ceylon-dist, including ceylon-common, ceylon-compiler, ceylon-js, ceylon-module-resolver, ceylon-runtime, ceylon-spec and ceylon.language | |
cd ceylon-dist | |
echo "$0: Updating ceylon-dist" | |
printf "%$(tput cols)s\n" | tr ' ' '=' | |
ant update-all publish-all | |
echo -e '\nDone.\n' | |
cd .. | |
# ceylon-sdk | |
cd ceylon-sdk | |
echo 'Updating ceylon-sdk' | |
printf "%$(tput cols)s\n" | tr ' ' '=' | |
oldSHA="$(git rev-parse HEAD)" | |
git pull | |
newSHA="$(git rev-parse HEAD)" | |
if [ "$oldSHA" != "$newSHA" ]; then | |
echo 'Rebuilding ceylon-sdk' | |
ant publish | |
fi | |
echo -e '\nDone.\n' | |
cd .. | |
# ceylon-ide-eclipse | |
cd ceylon-ide-eclipse | |
echo 'Updating ceylon-ide-eclipse' | |
printf "%$(tput cols)s\n" | tr ' ' '=' | |
oldSHA="$(git rev-parse HEAD)" | |
git pull | |
newSHA="$(git rev-parse HEAD)" | |
if [ "$oldSHA" != "$newSHA" ]; then | |
echo 'Rebuilding ceylon-ide-eclipse' | |
printf "%$(tput cols)s\n" | tr ' ' '=' | |
mvn install -Dmaven.test.skip && echo 'Update your Eclipse!' | |
fi | |
echo -e '\nDone.\n' | |
cd .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment