]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - setup.sh
setup.sh: Update copyright year.
[config/dotfiles.git] / setup.sh
index 27af2451e542c27a3b7aad1031bdf329c10b33ac..fa3f08c600f1c65819721a0d65533cd3b998324a 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -2,7 +2,7 @@
 
 # Setup script for multimedia configuration files.
 
-# Copyright (C) 2011-2012  Simon Ruderich
+# Copyright (C) 2011-2013  Simon Ruderich
 #
 # 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
@@ -22,5 +22,12 @@ set -e
 
 . ../lib.sh
 
-# Link setup.
-link mplayer ~/.mplayer
+
+# MPlayer and MPlayer2 use the same configuration directory.
+if installed mplayer; then
+    if mplayer --help | grep MPlayer2 >/dev/null; then
+        link mplayer2 ~/.mplayer
+    else
+        link mplayer ~/.mplayer
+    fi
+fi