#!/bin/bash

wget -O java-callgraph.zip https://github.com/gousiosg/java-callgraph/archive/master.zip &

wget -O ApplicationTracer.zip https://github.com/rmeloca/ApplicationTracer/archive/master.zip &
wget -O JSONSerialiser.zip https://github.com/rmeloca/JSONSerialiser/archive/master.zip &
wget -O Trace.zip https://github.com/rmeloca/Trace/archive/master.zip &
wget -O RequestsSimulator.zip https://github.com/rmeloca/RequestsSimulator/archive/master.zip &
wget -O Cache.zip https://github.com/rmeloca/Cache/archive/master.zip &

wait

unzip java-callgraph.zip &

unzip ApplicationTracer.zip &
unzip JSONSerialiser.zip &
unzip Trace.zip &
unzip RequestsSimulator.zip &
unzip Cache.zip &

wait

mv java-callgraph-master java-callgraph

mv ApplicationTracer-master ApplicationTracer
mv JSONSerialiser-master JSONSerialiser
mv Trace-master Trace
mv RequestsSimulator-master RequestsSimulator
mv Cache-master Cache