Logo

GitLab

Sign in

Mateusz Kopeć / DistSys

  • Back to Dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
44cbbee54dc5c5b714b914d91509f922cd9e7bed
  • DistSys
  • scripts
  • fill_empty_repo.sh
  • initial
    44cbbee5
    Mateusz Kopeć authored
    13 years ago  
    Browse Code »
fill_empty_repo.sh 380 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#!/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