mpin 433 B

12345678910111213141516
  1. #!/bin/sh
  2. ### Overall revision 6 ###
  3. # this is a script to install mplayer
  4. OLD_VER=`cat /.mplayer/in_data`
  5. NEW_VER=`cat /.mplayer/mk_data`
  6. if [ $OLD_VER != $NEW_VER ]; then
  7. cd /mplayer/ &&
  8. sudo make install &&
  9. growlnotify -m "mplayer installed" &&
  10. echo $NEW_VER|cat>/.mplayer/in_data
  11. cd -
  12. else
  13. growlnotify -m "code is the same, not installing"
  14. echo -e "\e[1;31mmplayer's code is the same, not going to install\e[m"
  15. fi