head	1.1;
access;
symbols
	release-2-07:1.1.0.10
	release-2-06:1.1.0.8
	release-2-05:1.1.0.6
	release-2-04:1.1.0.4
	release-2-03:1.1.0.2;
locks; strict;
comment	@# @;


1.1
date	2006.01.01.03.35.33;	author shd;	state Exp;
branches;
next	;


desc
@@


1.1
log
@*** empty log message ***
@
text
@#!/bin/sh
# Script to add uade:// prefixed songs into XMMS playlist. This is useful
# to avoid conflicts with protracker songs with modplug and other XMMS
# plugins. Any other plugin will not accept uade:// prefixed entries from
# the playlist.

for i in "$@@" ; do
    if test -z "`echo $i |grep ^/`" ; then
	i="`pwd`/$i"
    fi
    if test -f "$i" ; then
	xmms -e "uade://"$i""
    elif test -d "$i" ; then
	find "$i"/ -type f |while read line ; do
	    echo "uade://"$line""
	done |tr \\n \\0 |xargs -0 xmms -e
    fi
done
@
