# This script is used by xtribe to automatically update public games repo each type a game gets added/removed
# through Xtribe drupal site interface

# The script expect the first parameter to be the game name and the second the operation name (add,remove) 
# These parameter are used only to populate the commit explicative message

public_games_repo_path="/var/www/xtribe.eu/files/published_games_repo"

echo $public_games_repo_path

cd $public_games_repo_path
git add -A
git commit -m $2' game '$1
git push origin master

echo "Done"