#!/bin/bash

echo "Aurora Core";
git pull
echo "";

cd ../modules

for dir in $(find . -name ".git");
do
    cd ${dir%/*} > /dev/null;
    echo ${dir%/*};
    git pull;
	echo "";
    cd -  > /dev/null;
done

cd ../dev

chmod +x build.sh;
chmod +x update.sh;
chmod +x update-reset.sh;
chmod +x pack.sh;
chmod +x ./docs/build-apidoc.sh;

./build.sh

./docs/build-apidoc.sh