#!/bin/bash #This shellscript runs on a Mac and installs everyone's project into the #Android Emulator, one at a time. repository=INFO1-CE9705 project=December20 emulator=emulator-5554 #Create a directory named temp if it doesn't already exist. cd ~ if [[ ! -d temp ]] then mkdir temp fi cd temp for name in \ bobboau \ DimitarBabov \ besseym \ mcordone \ allaboutjava \ MichaelJaniak \ linhao \ mseema \ chayamo \ HelenN \ truancylounge \ JustZak \ vreyes do echo $name curl -s https://nodeload.github.com/$name/$repository/zipball/master \ > file.zip unzip -qq file.zip 2> /dev/null rm file.zip done for directory in `pwd`/*/$project do cd $directory/bin adb -s $emulator install `pwd`/*.apk #The projects all have the same name, #so they have to be installed in the emulator one at a time. echo Press return to continue. read answer package=`sed -n 's/package="\([^"]*\)"/\1/p' ../AndroidManifest.xml` adb -s $emulator uninstall $package 2> /dev/null done exit 0