# This executable file makes a list of orchestras to be run through
# the csound command.

# change to a main group directory
cd $1

# list all orchestra files in the given directory
# translate all points in filenames to a space
# cut out the first eight characters of the filename
# write them to $1.dir
ls *.orc | tr . " " | cut -c1,2,3,4,5,6,7,8 > $1.dir    

# after this $1.dir contains the list of files to be run by csound.
# jpg 3/94


