Skip to content

Instantly share code, notes, and snippets.

@tinchodias
Created February 8, 2013 09:46
Show Gist options
  • Save tinchodias/4737763 to your computer and use it in GitHub Desktop.
Save tinchodias/4737763 to your computer and use it in GitHub Desktop.
Script for getting the latest Cog VM for Pharo
#!/bin/bash
#try to backup (and remove) the current vm ====================================
OLD_VM=/Applications/NBCog-$(date +%-Y-%-m-%-d)-$(date +%H-%M-%S).zip
zip -q -rm $OLD_VM /Applications/NBCog.app
# DOWNLOAD THE LATEST VM ======================================================
VM_URL="http://pharo.gforge.inria.fr/ci/vm/nbcog/mac/nbcog-mac-latest.zip"
wget --progress=bar:force --output-document=vm.zip $VM_URL
#wget --quiet --output-document=vm.zip $VM_URL
unzip -qo -d /Applications vm.zip
rm -rf vm.zip
# DOWNLOAD THE PharoV10.sources ===============================================
if [ ! -f /Applications/PharoV10.sources ]
then
SOURCES_URL="http://pharo.gforge.inria.fr/ci/image/PharoV10.sources.zip"
wget --progress=bar:force --output-document=sources.zip $SOURCES_URL
unzip -qo -d /Applications sources.zip
rm -rf sources.zip
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment