#!/bin/bash

pushd checkout
rm -rf *-*/
find . -maxdepth 1 -type f -atime +25 -print -delete

for gitdir in babl gegl gimp; do
	pushd $gitdir
	git clean -xdf
	popd
done

popd

if [[ "$1" != "--skip-targets" ]]; then
	echo "Cleaning targets"
	rm -rf targets/*
fi
