]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - setup.sh
mplayer2: Add configuration files.
[config/dotfiles.git] / setup.sh
index 69fbe87de897040ddafa806894d6f5bd8679f241..01217a1edc6c524d6c6284c1db00ed9dcaf4d6cb 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
+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