1#! /bin/sh
2
3#
4#   Copyright 2007 by the cuyo developers
5#   Maintenance modifications 2007,2011 by the cuyo developers
6#   Based on used_images.sh which, at that time, was
7#     Copyright <=2002 by the cuyo developers
8#     Modified 2007 by Mark Weyer
9#
10#   This program is free software; you can redistribute it and/or modify
11#   it under the terms of the GNU General Public License as published by
12#   the Free Software Foundation; either version 2 of the License, or
13#   (at your option) any later version.
14#
15#   This program is distributed in the hope that it will be useful,
16#   but WITHOUT ANY WARRANTY; without even the implied warranty of
17#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18#   GNU General Public License for more details.
19#
20#   You should have received a copy of the GNU General Public License
21#   along with this program; if not, write to the Free Software
22#   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23#
24
25# Gibt alle Namen von Dateien aus, in im
26# Verzeichnis $1/sounds liegen und in einer der Dateien
27# aus $2 erw�hnt werden.
28# Gibt au�erdem ein paar Systemsounds aus.
29# Beispiel: used_sounds cuyo/sounds "summary.ld bla.ld"
30
31cd $1/sounds
32
33for i in *.wav *.it
34do
35   if test `cd ..;cat $2 | grep -c $i` != 0
36     then echo $1/sounds/$i
37     else echo "Not included:" $1/sounds/$i >&2
38   fi
39done
40
41