fill_empty_repo.sh 380 Bytes
#!/bin/bash

if [ $# == 2 ]; then
	echo "Filling empty repository in: $1 with $2 annos per file"
else
	echo "Usage: $0 DIR ANNO_PER_FILE"
	exit
fi

path=$1
annos=$2

mkdir $path/new
mkdir $path/annotation

c=0
for x in {A..Z}
do
	mkdir $path/annotation/$x
	c=$((c+1))
	if [ $c -ge $annos ]
	then
		break
	fi 
done 

mkdir $path/adjudication

echo "<files></files>" > $path/db.xml