updated on Mon Jan 16 16:00:41 UTC 2012
[aur-mirror.git] / mpd-notify / instalar.sh
blob892c5bdb92fea31e8e5bf772841ef9545f6bdd09
1 #!/bin/sh
2 #
3 # Revisa si el usuario es root
5 function check_root(){
6 ROOT_UID=0
7 E_NONROOT=67
8 if [ "$UID" -ne "$ROOT_UID" ]; then
9 printf "$(gettext "%s Necesitas ser root")\n" "$CMD_NAME"
10 exit $E_NONROOT
14 function main(){
15 check_root
16 gcc mpd-notify.c libmpdclient.c -o mpd-notify
17 cp mpd-notify /usr/local/bin/
18 cp mpd-notify-daemon /usr/local/bin
19 echo "********************************************************"
20 echo "Para iniciar mpd-notify ejecutar mpd-notify-daemon start"
21 echo ""
22 echo "Para iniciarlo automaticamente agregar mpd-notify-daemon start
23 a tus programas de inicio"
24 echo " "
25 echo "Instalado Correctamente"
26 echo " "
28 main $@