From d20501f75f1cade4f02fe96855b2e39b98683d83 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 7 Aug 2009 14:48:24 +0200 Subject: Add new script localmpdpopulate. --- localmpdpopulate | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 localmpdpopulate (limited to 'localmpdpopulate') diff --git a/localmpdpopulate b/localmpdpopulate new file mode 100755 index 0000000..8b6fdf7 --- /dev/null +++ b/localmpdpopulate @@ -0,0 +1,30 @@ +#!/bin/sh +# +# Copyright © 2006-2008 Jonas Smedegaard +# Description: Make symlink farm from /src/music/* for MPD +# +# 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 2, 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. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +# 02111-1307 USA. +# +# Depends: xutils-dev + +# FIXME: resolve fromdir instead of using hardcoded list +# TODO: somehow support prioritizing without hardcoding fromdir + +set -e + +for fromdir in henrik alvilda asbjorn siri-old siri jonas-old jonas; do + lndir -silent -ignorelinks /srv/music/"$fromdir" /var/lib/mpd/music +done -- cgit v1.2.3