#!/bin/bash

if [ $# == 0 ]; then
	cd ../../
	./backup
	cd ./build/Release/
fi

rm -rf `ls -I build -I clean`
rm -rf ../../.cache
rm -rf ../../bin/Release/abc-*
rm -rf ../../bin/Release/Data/*
rm -rf ../../bin/Release/gpi-h1
rm -rf ../../bin/Release/gpi-l2
rm -rf ../../bin/Release/the_*
rm -rf ../../bin/Release/*.csv
rm -rf ../../bin/Release/*.log
rm -rf ../../bin/Release/the_list_*

dirs=(
ppc-neumann #0
ppc-dirichlet #1
ppc-abc #2
shell-neumann #0
shell-dirichlet #1
shell-abc #2
)

for dir in "${dirs[@]}"
do
	mkdir ../../bin/Release/Data/${dir}
done

