27 lines
439 B
Bash
27 lines
439 B
Bash
|
#!/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/* /tmp/ocarina/dir$i/
|
||
|
|
||
|
for f in /tmp/ocarina/dir$i/*; do
|
||
|
tag_file $f $i
|
||
|
done
|
||
|
done
|