#!/bin/bash
#
#
# 	Script d'initialisation d'un dépot vMap versionné sous git
#	Initislise l'ensemble des dépendances sous forme de subtrees
#   Crée des symlinks pour re-créer l'arborescence de l'application
#
#

if [ `whoami` == "root" ]; then
    echo "Please, do not run this script as sudo"
else
    cd utils/
    ./init_symlinks.sh
    ./pull_subtrees.sh
    ./copy_hooks.sh

    cd ../conf
    npm install grunt --save
    npm install grunt-cli
    npm install grunt-closure-tools --save
    npm install google-closure-compiler@20160911.0.0 --save
    npm install google-closure-library@20160911.0.0 --save
    grunt -dev
fi