Skip to content

Instantly share code, notes, and snippets.

@lucaswerkmeister
Created October 23, 2013 15:06
Show Gist options
  • Save lucaswerkmeister/7120517 to your computer and use it in GitHub Desktop.
Save lucaswerkmeister/7120517 to your computer and use it in GitHub Desktop.
#!/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