##
#   Project: esimplyscript
#   Author: Mario Guerriero <mefrio.g@gmail.com>
#   Copyright: 2011 Mario Guerriero
#   License: GPL-3+
#  This program is free software; you can redistribute it and/or modify it
#  under the terms of the GNU General Public License as published by the Free
#  Software Foundation; either version 3 of the License, or (at your option)
#  any later version.
#
#  This program is distributed in the hope that it will be useful, but WITHOUT
#  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
#  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
#  more details.
#
# On Debian GNU/Linux systems, the full text of the GNU General Public License
# can be found in the file /usr/share/common-licenses/GPL-3.
##

import os

#elementary software
def switchboard():
	#os.system("x-terminal-emulator -e 'cd /home/"+os.getlogin()+" && bzr branch lp:switchboard && cd switchboard && ./compile'")
	os.system("cd scripts && ./switchboard.sh")

def colors():
	#os.system("xterm -e 'cd /home/"+os.getlogin()+" && bzr branch lp:colors && cd colors && ./compile'")
	os.system("cd scripts && ./colors.sh")

def plank():
	#os.system("xterm -e 'cd /home/"+os.getlogin()+" && bzr branch lp:plank && cd plank && ./autogen.sh && make && sudo make install'")
	os.system("cd scripts && ./plank.sh")

def wingpanel():
	#os.system("xterm -e 'cd /home/"+os.getlogin()+" && bzr branch lp:wingpanel && cd wingpanel && ./waf configure && sudo ./waf install'")
	os.system("cd scripts && ./wingpanel.sh")

def slingshot():
	#os.system("xterm -e 'cd /home/"+os.getlogin()+" && bzr branch lp:~mbarvian/slingshot-launcher/slingshot && cd slingshot && chmod +x ./build_run && sudo ./build_run'")
	os.system("cd scripts && ./slingshot.sh")

def maya():
	os.system("cd scripts && ./maya.sh")
	
#others...
def dependence():
	#os.system("xterm -e 'sudo apt-get install libunique-1.0-0  gir1.0-gee-1.0  libindicator-dev  gir1.0-glib-2.0 libfsoresource-dev  gtk+-2.0 gir1.0-gdkpixbuf-2.0 libindicate-gtk-dev libgtk2.0-cil-dev valac pkg-config'")
	os.system("cd scripts && ./dep.sh")
