9d8455001f
This excludes the invalid_track file I just added. Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
27 lines
443 B
Bash
Executable File
27 lines
443 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Copyright 2013 (c) Anna Schumaker.
|
|
#
|
|
# Generate a test library in /tmp
|
|
#
|
|
|
|
# $1 - File, $2 - Directory number
|
|
function tag_file()
|
|
{
|
|
artist="Artist $2"
|
|
album="Album $2"
|
|
let date=2008+$2
|
|
vorbiscomment -w $1 -t "ARTIST=$artist" -t "ALBUM=$album" -t "DATE=$date"
|
|
}
|
|
|
|
|
|
mkdir -p /tmp/ocarina/dir{1..5}
|
|
|
|
for i in $(seq 5); do
|
|
cp tests/Music/*.ogg /tmp/ocarina/dir$i/
|
|
|
|
for f in /tmp/ocarina/dir$i/*; do
|
|
tag_file $f $i
|
|
done
|
|
done
|